Getting Japanese Data From DB and Displaying in JSP

Hi,

We have developed several Japanese Web Pages which are getting displayed correctly and also the data input in Japanese gets stored and displayed correctly when the page is re invoked

The problem I am encountering is that when I try to extract Japanese data from a given table in SQL and display it on my JSP page I get nothing but a series of ? marks even though when I run the same query in SQL, the results are being displayed perfectly in Japanese.

I have imported charset="Shift_jis" in my pages. I would be thankful if somebody could help me out.

Regards

[602 byte] By [RichaM] at [2007-9-26 2:45:46]
# 1

I am not too certain if the following information helps, but it may do.

I was trying to run Java Applet to display Japanese characters using a browser on normal Windows platform (English Edition). Though I was unable to reach the goal, I found that

1. JVM needs to start up being passed a parameter specifying Unicode encoding charset.

2. I figured how to pass encoding parameter to JVM from command line, but I could not figure out how to do for web browsers (IE and Netscape).

3. I was able to display Japanese characters on Windows English Edition by following the method I described.

From what I experienced, I am wondering if we need to start Java Servlet passing Unicode encoding parameter. Any comment? Did you already figure out how?

junwny at 2007-6-29 10:28:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

hi,

i faced the same problem when i was devloping pages that displays arabic characters. you need 2 do 2 things:

1) in your sevlet/been that access the database, please make sure that: enableUnicode=true, encoding=[your_char_set_as it appears in the Java documentation for i18n ] is set in the code that registers the JDBC driver.

2) inside your web.xml (in case of using tomcat server) include the encoding that you require.

this should solve the '?' issue!

regards,

tamer

Tamer at 2007-6-29 10:28:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
urgent!i'm facing the same problem but is in unicodewhich extract data from sql and display ?
alistair11 at 2007-6-29 10:28:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

hello,

I wanna store the japanese data and dispaly it ...i am able to get and show japanese data properly...but while storing in MS-Access database every character gets stored in &#some number format...i want it to be stored in a readable format...

if anybody has solution please post it...

thanx in advance...

chillymilly at 2007-6-29 10:28:03 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...