Re: Writing Unicode-16 to a text file

From: chris (chris_at_kiffer.eunet.be)
Date: 01/23/04

  • Next message: BlackHawke: "Game Company- Java Server Thread Priority"
    Date: Fri, 23 Jan 2004 09:26:54 +0100
    
    

    Konrad Den Ende wrote:

    > I tried to write some Unicode-16 characters (that were displayed
    > correctly, as expected, on the screen) to a file but it didn't work
    > out very well. I have those in an char[] as well as a String. Both
    > will give me a number of "?".
    >
    > What do i miss?
    >

    When you wrote the characters to a file (what method did you use?) they
    probably underwent a 16-bit to 8-bit conversion, using some encoding (what
    encoding did you specify? or what is your Java installation using as its
    default encoding?). When you looked at the file afterwards, the software
    you used to do that (what did you use?) probably wasn't set up to grok that
    encoding.

    What happens when you read the file back into Java?

    Good luck,

    Chris

    -- 
    Chris Gray      chris@kiffer.eunet.be
    /k/ Embedded Java Solutions
    

  • Next message: BlackHawke: "Game Company- Java Server Thread Priority"

    Relevant Pages