jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes Japanese character problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Japanese character problem" Watch "Japanese character problem" New topic
Author

Japanese character problem

Vels Manian
Greenhorn

Joined: Jun 28, 2001
Posts: 22
Hi,
I'm using jdk1.3 and oracle9i in sun os.
The character set of the database is set to ShiftJIS (also tried with UTF8). I'm able to store and retrieve katakana(japanese) values using sqlplus from a jp nt machine.. if I use jdbc to retrieve the values it is displayed as '?'. I've tried using getBytes also, it doesnt seem to work.
Thanks & Regards
Vels
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
I suppose that this is server side problem (JSP etc.)I assume you database is properly setup with charset moreover if your Oracle database is set to use UTF-8(or other appropriate), then the JDBC drivers should be doing the conversion
Can you post your code?
[ February 07, 2003: Message edited by: varun Khanna ]

- Varun
 
 
subject: Japanese character problem