Interpreting dual-byte (Japanese specifically) character codes from HTML?

I've got a VI that uses the Internet Toolkit to load a list of pages from the Web (one at a time) and then parses the HTML to extract elements such as the page title. It works great...except when I hit Asian-language pages.
For instance.
http://digital.ni.com/worldwide/bwcontent.nsf/web/all/576474D6E4C6F53D49256BD50029AE5D
I've got the Japanese language pack installed, so the title shows up fine in my browser (dual-byte characters display). However, when I "View Source", the title tag looks like this:
LabVIEW Visionソフトウェアが組込み式ビジョン能力を提供 - News - National Instruments
That's basically what LabVIEW is seeing as well. Any tips for converting these to dual-byte characters? Ultimately, I'm putting the information in a spreadsheet. I've got the Japanese IME installed in Excel, but that doesn't seem to help me out much.
Any ideas?
TIA,
Tim

Hi Tim,
I think the issue is related to the fact that LabVIEW is a multi-byte program and does not support unicode. I can make a couple suggestions to see if this will help:
1. Change your system settings so that the regional settings are in Japanese. There is another discussion forum post that discusses this issue with Chinese characters that might help you out:
Discussion Forum: Can the English version of LabVIEW 7.0 support Chinese text strings?
There's also an excellent KB on the bottom of that discussing LabVIEW's multilingual support.
2. There's also this discussion forum that talks specifically about Japanese languages. You can try out Greg McKaskle's suggestion as well:
Discussion Forum: How do I get LabVIEW 5.1.1 to allow entry of Japanese text in Windows 98?
Hope this helps. Good luck.
Kileen

Similar Messages

  • Using xsgl:insert-request to insert non-English character data from HTML form

    I tried to insert a text written in French and pasted into an HTML form into my database following the recipe from the XSQL release notes.
    The table:
    create table content_object (
    id number(9) constraint pk_content_object primary key,
    author number(9),
    title varchar2(256),
    abstract varchar2(1024),
    object_type_id number(9),
    content_meat clob,
    XML file the form is posted to:
    <?xml version="1.0"?>
    <xsql:insert-request connection="demo"
    xmlns:xsql="urn:oracle-xsql"
    table="content_object"
    transform="article_form_to_content_object.xsl"/>
    article_form_to_content_object.xsl:
    <?xml version = '1.0'?>
    <ROWSET xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
    <xsl:for-each select="request/parameters">
    <ROW>
    <TITLE><xsl:value-of select="title_field"/></TITLE>
    <ABSTRACT><xsl:value-of select="abstract_field"/></ABSTRACT>
    <CONTENT_MEAT><xsl:value-of select="content_field"/></CONTENT_MEAT>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    The result was:
    <ROW num="2">
    <ID>6</ID>
    <TITLE>Le go</TITLE>
    <ABSTRACT>Vin bouchonn</ABSTRACT>
    <CONTENT_MEAT>Des conditions de conservation au tant d</CONTENT_MEAT>
    </ROW>
    All strings were cropped at the point where the first accented character appeared.
    Any idea why this is happening? With English texts it works just fine.
    Maciej

    Another user hit this problem this week. I debugged it and posted the reply in the discussion thread:
    http://technet.oracle.com:89/ubb/Forum11/HTML/002799.html
    It's a JDK bug in character set conversion that has a simple workaround, just indicate the ISO-8859-1 encoding on your XSQL page. See the end of this other thread for details.

  • Code from Html converter is NOT working

    Hello, everybody
    I have used the Htmlconverter with the extended template for all platforms and and browsers.
    I test it on WinXP with ver 6.
    The user didn't had any plug-in installed and the browser didn't asked anything but silently without raising any problems it previewed a blank page.
    What is happening ??

    WinXP/IE6 doesn't include a Java virtual machine, so it can't run applets unless the Java Plugin is downloaded and installed.Go to
    http://java.sun.com to download.

  • SMW00 separate action for specific error-code

    Hello,
    I know transaction SMW00 to send emails for bdoc-errors. Can I take seperate action for specific error-codes from specific organisational units?
    Thanks for helping,
    Bart

    Hi Bart,
    Using standard action handler it is not possible but one other option is to take a copy of RSMW0_CONFIG_ERRORHANDLER and enhance it to send actions based on organisational units.
    Rregards,
    Surendar

  • Functions for mapping Latin-1 character codes to and from WinLatin-1  character codes

    HI ALL
    I will like to know how could i write own functions for mapping Latin-1 character codes to and from WinLatin-1
    character codes.
    Can show me some source code or how to mapping it. Because i just begineer.
    Hope you able to help me..

    I see your issue. I tried to reproduce this issue using sqlplus.
    Setup NLS_LANG as you mentioned using WE8ISO8859P1 and connect to a UTF8 db.
    [oracle@server ~]$ locale -a | grep en_US
    en_US
    en_US.iso88591
    en_US.iso885915
    en_US.utf8
    [oracle@server ~]$ export LC_ALL=en_US.iso88591
    [oracle@server ~]$ locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.iso88591"
    LC_NUMERIC="en_US.iso88591"
    LC_TIME="en_US.iso88591"
    LC_MEASUREMENT="en_US.iso88591"
    LC_IDENTIFICATION="en_US.iso88591"
    LC_ALL=en_US.iso88591
    [oracle@server ~]$ echo $NLS_LANG
    AMERICAN_AMERICA.WE8ISO8859P1
    SQL> select value from nls_database_parameters where parameter='NLS_CHARACTERSET';
    AL32UTF8
    SQL> select nchr(223) from dual;
    NCHR
    ß
    SQL> select chr(223) from dual;
    ERROR:
    ORA-29275: partial multibyte character
    SQL> SELECT CHR (223 USING NCHAR_CS) from dual;
    C
    ß
    SQL>  select  CONVERT('ß', 'WE8ISO8859P1','UTF8') FROM DUAL;
    CO
    SQL> select  CONVERT(CHR(223 USING NCHAR_CS), 'WE8ISO8859P1','UTF8') FROM DUAL;
    select  CONVERT(CHR (223 USING NCHAR_CS), 'WE8ISO8859P1','UTF8') FROM DUAL
    ERROR at line 1:
    ORA-12703: this character set conversion is not supportedI found that beta is in WE8ISO8859P1 character set
    here[url http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch2charset.htm#NLSPG164]What Characters Does a Character Set Support?
    But I don't really understand whats the problem in the conversion.

  • Coversion from byte stream to character & character to byte stream.

    This is a test program.
    import java.io.*;
    class Test
         public static void main(String[] args)
              System.out.println("Hello World!");
              try
                   BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File("C:/javafiles/testing/Picture.jpg"))));
                   PrintWriter bw = new PrintWriter(new OutputStreamWriter(new FileOutputStream(new File("C:/javafiles/testing/Copy.jpg"))));
                   String in = br.readLine();
                   while (in != null)
                        bw.println(in);
                        in = br.readLine();
                   br.close();
                   bw.close();
              catch (Exception e)
                   System.out.println("\n\n**********Exception Occured**************\n" + e);
    **First of all I read jpg file convert it into character stream from byte stream.
    **and copy it back and convert it back into byte steam from character stream.
    **The file copied back is corrupted.(getting open but display has fully scattered.)
    **That means data has been lost in conversion.
    **is it due to the encoding, I havn't specified while writing, or it always happens when we convert from byte stream to character and vice versa.
    **What encoding should I use while writing jpg files.
    please comment.

    **First of all I read jpg file convert it into
    character stream from byte stream.
    **and copy it back and convert it back into byte
    steam from character stream.First of all this operation is meaningless. A JPEG file doesn't contain anything that can be converted to characters. Delete the 'conversions' and all will be well.
    **What encoding should I use while writing jpg files.None. Don't use an encoding. Don't use Readers and Writers. Use InputStreams and OutputStreams only.

  • How can i execute byte code from remote location.

    I want my program to execute byte code from some remote location.Should i ransfer class files to my pc and then execute it but i would it to be executed from remote location.

    ... but i would it to be executed from remote location.Sounds like you want to use RMI (Remote Method Invocation).
    Allows you to have a remote machine execute code.
    Start here:
    http://developer.java.sun.com/developer/onlineTraining/rmi/index.html

  • Convert from HTML Character Codes in Applescript

    Hey everyone,
    I have an applescript that retrieves some info from websites, but sometimes parts of the information are encoded into HTML Character codes for web compatibility. Could someone point me in the right direction to processing these into plain simple text? Has somebody already written a tool? Sorry, I'm very new to this, but willing to learn.
    Thanks in advance.
    Jason

    This should to the job. Thx apple =)!
    <pre style="margin: 0px; border: 1px solid #aaa; width: 800px; color:#000; background-color: #ccc; overflow: auto; font-family: Verdana, Monaco, monospace;"> set web_url to quoted form of "http://discussions.apple.com/thread.jspa?threadID=2244400&tstart=0"
    *do shell script* "curl " & web_url & " | textutil -stdin -convert txt -format html -stdout"</pre>

  • How can I read a specific character from a text file?

    Hi All!
    I would like to read a specific character from a text file, e.g. the 2012th character in a text file with 7034 characters.
    How can I do this?
    Thanks
    Johannes

    just use the skip(long) method of the input stream that reads the text file and skip over the desired number of bytes

  • Unwanted character codes (&amp; etc) from XML displaying in Flash

    I have a static, UTF-8 encoded XML document that gets loaded
    by a custom movie clip class into an array and then items from the
    array are read and displayed in a dynamic text field that is
    attached to the movie clip, depending on which one is rolled over.
    Everything works perfectly except that an ampersand displays as
    &amp; apostrophes display as &apos; and quotes display as
    &quot;, even if I use the special character inside the XML.
    Higher level character codes actually display properly, so
    character codes for circle shaped bullets, registered trade mark
    symbol, Greek characters, etc, work! But a blessed ampersand does
    not.
    Setting the dynamic text field to either read as HTML or not
    read as HTML makes no difference.
    Using CDATA tags in the XML makes no difference. In fact,
    when I use CDATA tags and enclose text containing a special
    character code, Flash goes the extra step of converting the
    ampersand in the special character code to &amp;!! So
    &quot; becomes &amp;quot;.
    Using &#38; just gets converted to &amp;. So Flash's
    XML parser is parsing the &#38 to an ampersand, which Flash's
    text parser then converts to &amp;. WHY? And how do I stop it?
    I found the function below to clean out the unwanted
    characters, and it works, but it seems a ridulous length to go to.
    And I probably have to extend it to accomodate whatever other
    characters don't work in Flash, but I don't know what those might
    be until I encounter them.
    Also, the function works whether I use a special character in
    the XML or not. ie, if I put an actual "&" into the XML, this
    function will display "&" and if I put &amp; into the XML,
    it will still display as "&".
    Thanks for any help.

    Have a look at this:
    http://www.smithmediafusion.com/blog/?p=144
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "maija_g" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have a static, UTF-8 encoded XML document that gets
    loaded by a custom
    >movie
    > clip class into an array and then items from the array
    are read and
    > displayed
    > in a dynamic text field that is attached to the movie
    clip, depending on
    > which
    > one is rolled over. Everything works perfectly except
    that an ampersand
    > displays as &amp; apostrophes display as &apos;
    and quotes display as ',
    > even
    > if I use the special character inside the XML. Higher
    level character
    > codes
    > actually display properly, so character codes for circle
    shaped bullets,
    > registered trade mark symbol, Greek characters, etc,
    work! But a blessed
    > ampersand does not.
    >
    > Setting the dynamic text field to either read as HTML or
    not read as HTML
    > makes no difference.
    >
    > Using CDATA tags in the XML makes no difference. In
    fact, when I use CDATA
    > tags and enclose text containing a special character
    code, Flash goes the
    > extra
    > step of converting the ampersand in the special
    character code to &amp;!!
    > So '
    > becomes &amp;quot;.
    >
    > Using &#38; just gets converted to &amp;. So
    Flash is parsing the &#38 to
    > an
    > ampersand, which it then converts to &amp;. WHY? And
    how do I stop it?
    >
    > I found the function below to clean out the unwanted
    characters, and it
    > works,
    > but it seems a ridulous length to go to. And I probably
    have to extend it
    > to
    > accomodate whatever other characters don't work in
    Flash, but I don't know
    > what
    > those might be until I encounter them. And the whole
    point to using the
    > XML was
    > so that someone without Flash could update the file.
    >
    > Thanks for any help.
    >
    > private function cleanTextFunc(txt):String {
    > txt = txt.toString();
    > txt = txt.split("&apos;").join("'");
    > txt = txt.split("&amp;").join("&");
    > txt = txt.split("&quot;").join("\"");
    > return txt;
    > }
    >

  • Extracting the largest code from a specific section in the report

    Post Author: MikeA-ICE
    CA Forum: General
    I have a report that has 8 sections, called Report Areas. Each area is limited by a range of codes (Group1). For the whole report the codes range from 01 to 93. There is one particular area in the report, Area 2, that spans 01 to 29. I need to extract the largest code from Area 2 but I never know from one time to the next when running the report what codes will be included. There could be any number of codes in a particular run of the report. I could have 1, 3,4,5, 7, 11, & 16 one time and 1, 2, 3, 8, 9, 12, 21, 23, and 28 the next. I tried this formula:If {CBIRptTotalSummary.ReportArea} = 2ThenNthLargest (1, {CBIRptTotalSummary.Group1})This consistently printed 93 in Area 2 of the report since 93 is the largest code of Group1 in the report. I've tried numerous other formulas and I can't get Crystal to look only at the groups contained in Area 2 and tell me what the largest group is in that area. How would I accomplish this? Thanks  very much for your help!!Mike

    Post Author: Jagan
    CA Forum: General
    Do you group on ReportArea?If so, it's the maximum(Group1, ReportArea)

  • Form English Char ( Single Byte  ) TO Double Byte ( Japanese Char )

    Hello EveryOne !!!!
    I need Help !!
    I am new to Java ,.... I got assignment where i need to Check the String , if that string Contains Any Non Japanse Character ( a~z , A~Z , 0 -9 ) then this should be replaced with Double Byte ( Japanese Char )...
    I am using Java 1.2 ..
    Please guide me ...
    thanks and regards
    Maruti Chavan

    hello ..
    as you all asked Detail requirement here i an pasting C code where 'a' is passed as input character ..after process it is giving me Double Byte Japanese "A" .. i want this to be Done ..using this i am able to Convert APLHA-Numeric from singale byte to Doubel Byte ( Japanse ) ...
    Same program i want to Java ... so pleas guide me ..
    #include <stdio.h>
    int main( int argc, char *argv[] )
    char c[2];
    char d[3];
    strcpy( c, "a" ); // a is input char
    d[0] = 0xa3;
    d[1] = c[0] + 0x80;
    printf( ":%s:\n", c ); // Orginal Single byte char
    printf( ":%s:\n", d ); // Converted Double Byte ..
    please ..
    thax and regards
    Maruti Chavan

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • How to select a substring in oracle up to a more than one specific character

    How to select a substring in oracle up to a more than one specific character
    for ex : 121.051^NP: FAMILY PRACTICE  ( trim the values before ^ )
                121.051^*NP: FAMILY PRACTICE (trim the value before *).
    with below function I can only get rid of ^ , I want both the specific characters ^ and ^* to be removed at the same time.   
    SUBSTR(p.phys_sub_grp_2_desc,INSTR(p.phys_sub_grp_2_desc, '^') +1)

    Another option is to boldly replace 'em:
    SQL> with t as (
      2  select '121.051^NP: FAMILY PRACTICE' str from dual union
      3  select '121.051^*NP: FAMILY PRACTICE' from dual
      4  )
      5  --
      6  -- actuel query:
      7  --
      8  select substr( replace(str, '*')
      9               , instr(replace(str, '*'), '^')+1
    10               ) str
    11  from   t;
    STR
    NP: FAMILY PRACTICE
    NP: FAMILY PRACTICE
    2 rows selected.

  • Detecting character encoding from BLOB stream... (PLSQL)

    I'am looking for a procedure/function which can return me the character encoding of a "text/xml/csv/slk" file stored in BLOB..
    For example...
    I have 4 files in different encodings (UTF8, Utf8BOM, ISO8859_2, Windows1252)...
    With java I'can simply detect the character encoding with JuniversalCharDet (http://code.google.com/p/juniversalchardet/)...
    thank you

    Solved...
    On my local PC I have installed Java 1.5.0_00 (because on DB is 1.5.0_10)...
    With Jdeveloper I have recompiled source code from:
    http://juniversalchardet.googlecode.com/svn/trunk/src/org/mozilla/universalchardet
    http://code.google.com/p/juniversalchardet/
    After that I have made a JAR file and uploaded it with loadjava to my database...
    C:\>loadjava -grant r_inis_prod -force -schema insurance2 -verbose -thin -user username/password@ip:port:sid chardet.jarAfter that I have done a java procedure and PLSQL wrapper example below:
       public static String verifyEncoding(BLOB p_blob) {
           if (p_blob == null) return "-1";
           try
            InputStream is = new BufferedInputStream(p_blob.getBinaryStream());
            UniversalDetector detector = new UniversalDetector(null);
            byte[] buf = new byte[p_blob.getChunkSize()];
            int nread;
            while ((nread = is.read(buf)) > 0 && !detector.isDone()) {
                detector.handleData(buf, 0, nread);
            detector.dataEnd();
            is.close();
           return detector.getDetectedCharset();
           catch(Exception ex) {
               return "-2";
       }as you can see I used -2 for exception and -1 if input blob is null.
    then i have made a PLSQL procedure:
    function f_preveri_encoding(p_blob in blob) return varchar2 is
    language Java name 'Zip.Zip.verifyEncoding(oracle.sql.BLOB) return java.lang.String';After that I have uploaded 2 different txt files in my blob field.. (first one is encoded with UTF-8, second one with WINDOWS-1252)..
    example how to call:
    declare
       l_blob blob;
       l_encoding varchar2(100);
    begin
    select vsebina into l_blob from dok_vsebina_dokumenta_blob where id = 401587359 ;
    l_encoding := zip_util.f_preveri_encoding(l_blob);
    if l_encoding = 'UTF-8' then
       dbms_output.put_line('file is encoded with UTF-8');
    elsif l_encoding = 'WINDOWS-1252' then
       dbms_output.put_line('file is encoded with WINDOWS-1252');
    else
        dbms_output.put_line('other enc...');
    end if;
    end;Now I can get encoding from blob and convert it to database encoding and store datas in CLOB field..
    Here you have a chardet.jar file if you need this functionality..
    https://docs.google.com/open?id=0B6Z9wNTXyUEeVEk3VGh2cDRYTzg
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:34 PM
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:34 PM
    Edited by: peterv6i.blogspot.com on Nov 29, 2012 1:38 PM

Maybe you are looking for

  • Does anybody has problem with playing youtube in Opera Mini after iOS6 update?

    After iOS6 update I can not play youtube from Opera Mini,- neither link to youtube works and embedded video as well. It works ok with Safari, but I prefer using Opera Mini instead. If there is a embedded youtube video or just a link to m.youtube, Ope

  • Lion preview signature is wrong orientation

    Loving the iSight signature creator - amazing. I've created my signature and now I want to use it. However, when clicking it into the document it comes out rotated by 90 degrees, i.e. at a tangent to the document. Rotating the document does not help

  • Where is 8.1.6?

    I see some success with Oracle 8.1.6 on Mandrake, so that would be something to try. Unfortunately, the link on Technet does not work for me. Did they remove the TAR_GZ but left the link? Is the link outdated? Thanks!

  • Graphics display problems (dialog boxes) Lenovo G50 AMD A6 Win 8.1

    Graphics display problems Lenovo G50 AMD A6 Win 8.1 Greetings to all. After having spent a number of days trying to find a solution to a display problem, I turn to this forum for help. I own a Lenovo G50 AMD A6 Win 8.1 ever since November 2014, and h

  • Export an XML or EDL which will keep the clip's full name

    Greetings, I've been working with R3d (RED EPIC format) footages in premiere cs6 and i need to export an XML or EDL which will keep the clip's full name, in order to use it for further post production (davinci). How do i do it?