Unicode

From: Manfred Nebel (M_Nebel_at_T-Online.de)
Date: 05/21/04


Date: Fri, 21 May 2004 14:56:42 +0200

Hi,

till now I was using JAVA to load my database from an txt-file like

BufferedReader in = new BufferedReader(new FileReader("daten.txt"),65535);
...
    while ((line = in.readLine()) != null) {
...
        while (st.hasMoreTokens()) {
            d[token] = (st.nextToken());
...
}}
an stored them with as a string via ODBC-connection like

sqlStat = stat.executeUpdate(sql);

The destination table has VARCHAR2 columns.

Now I receive my txt-files in unicode (utf16). I changed the VARCHAR2 in
NVARCHAR2.
But JAVA dont handle utf16 when i use the String variable.
When I using the filereader it doesn't work.
Is there anybody who can give me a helping hand?

Manfred Nebel



Relevant Pages

  • Re: Help me!! Why java is so popular
    ... String or StringBuffer? ... keep in mind I knew NOTHING about Java. ... The language accepted it, no warnings, and thus I ... in some native assemblers you can peruse the instruction ...
    (comp.lang.java.programmer)
  • Re: question about assigning null to a reference object
    ... String getAuthor() ... void setAuthor ... b.setTitle("Thinking in Java 4th Edition"); ...
    (comp.lang.java.help)
  • Re: Java questions: Urgent
    ... why I would expect almost any Java programmer to be able to answer ... Which is the main reason I "butted" in a bit.. ... on the characters in the String. ... > therefore naturally cover all the basics, or they have missed out badly ...
    (comp.lang.java.programmer)
  • Re: A C++ Whishlist
    ... with the C++ string classes as compared with the Java ones. ... You can keep you structs entirely ... The simple separation of interface and implementation that header files ...
    (comp.lang.cpp)
  • Re: Using Cobol when writing CGIs for the OSU web server.
    ... string safe as well as make slow conversion (as bugs are found and ... The string type approach. ... Because no one has bothered to add it to the "offending" language. ... Java is certainly no replacement for C. ...
    (comp.os.vms)