jQuery in Action, 2nd edition
The moose likes Beginning Java and the fly likes Japanese Character Display Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Japanese Character Display" Watch "Japanese Character Display" New topic
Author

Japanese Character Display

robby abaya
Greenhorn

Joined: Jun 16, 2005
Posts: 1
Sorry for such a newbie question.

My program reads in a UTF-8 file containing some Japanese characters, stores them into a String variable and then attempts to print using: System.out.println(myString); . However, it doesn't display correctly in XCode or the Terminal (shows mostly question marks). When I follow it in the debugger, the Japanese characters show up correctly stored in the variable. Also, if I just do: System.out.println("japaneseCharacters"); where japaneseCharacters are actual japaneseCharacters, they print out correctly. I've made sure that my source files, the file being read in, and the terminal are both set to UTF-8. Can somebody point me in the right direction?

Thanks!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Japanese Character Display
 
Similar Threads
does excel support utf-8 encoding?
UTF-8 and Tomcat
Attachment FileName not displaying UTF-8 characters correctly
simple code ! char conversion
Problem in displaying unicode data from DB2 in JSP