1 Reply Latest reply: Feb 22, 2010 12:40 PM by DrClap RSS

    Converting Japanese Characters to Unicode

      I would like to convert the actual Japanese characters to unicode, how can i do it?

        • 1. Re: Converting Japanese Characters to Unicode
          Presumably these "actual" characters are in some place outside your Java program. In that case they might be encoded as bytes using some encoding. Your first step is to find out what that encoding is. Then to get them into your program, make sure that whatever is reading them in is also using that encoding to decode them to Unicode chars.

          If you're reading them from an InputStream, then wrap that InputStream in an InputStreamReader which specifies the encoding which you determined in the first step. If you're reading them in some other way, then you'll have to figure out how to specify the encoding to that other way.