Problem reading Japanese Characters in Servlet

Hi ,

Can you Pls. help me with a problem I have with Internationalization.

My application runs on English version of NT & I'm using SQL 7.0.

The Application consists of an Applet and I can enter Japanese Text with an IME but when

I send the same text to the Servlet for inserting into the database ,

some garbage gets inserted.

I have tried using Stream Readers with different encodings like SJIS & UTF-8,

I even tried using the writeUTF method of the DataOutputStream.

Can you please suggest some solution, or can you give me some site names where I could get

an answer.

Waiting for your reply,

Priya

[698 byte] By [PriyaIyer] at [2007-9-26 1:22:26]
# 1
Try by converting the string that u r trying to insert like :String strToDatabase;strToDatabase = new String(strToDatabase.getBytes("8859_1"),"Shift_JIS")
sunilkg at 2007-6-29 0:59:28 > top of Java-index,Desktop,I18N...