File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Help needed in internationalization of J2EE application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Help needed in internationalization of J2EE application" Watch "Help needed in internationalization of J2EE application" New topic

Help needed in internationalization of J2EE application

Prashant Wu

Joined: Nov 29, 2005
Posts: 4

In our J2EE based application, we need to support multiple language input in a text box.

The requirement is:

When a user inputs some value in a text box in any language other than English, the same should be stored in data base and next time when we display user�s profile, the value should be displayed in the same language. Say for an example, the user is Japanese and he inputs his name in Japanese language. When he submits the page, the name should be stored in Japanese. The same Japanese text should be displayed against his name in his profile when he sees his profile.

The problem is:

When a user enters the Japanese language text in the jsp (the encoding of the page in this case would be �Shift_JIS�) and clicks submit, the same value is being inserted in the Informix database and when retrieved back from database to display it to user, the characters are converted to �???�. We have also tried setting the encoding of string being inserted explicitly but it�s still not working.

If anybody has faced the same problem and know the way out, kindly suggest. Appreciate your help.

Warm Regards,<br />Prashant...
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

"Prashant MV",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Help needed in internationalization of J2EE application
jQuery in Action, 3rd edition