Converting an English web application to Japanese.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, May 13, 2002 06:37 AM


We have an existing English language web application based on JSP-JSP-Bean architecture and deployedon Weblogic 6.0. The application has to be modified to support Japanese characters. There is also a requirement to generate flat files (.csv files) from the application. The current Oracle database's character set is UTF8 and the NLS Lang of the server is UTF8 too. We have tried various options but the data goes in as junk into the database. If we use ISO-8859-1 encoding the data goes as something like this "稒" ... this creates problems in generating .csv files. How do we ensure that the data not only goes correctly in the DB but we can display it correctly too.

Re: Converting an English web application to Japanese.

Posted By:   gayathri_meenakshi  
Posted On:   Tuesday, May 14, 2002 09:53 PM

Hi,

On form submission include the following encoding type in the form tag of html..


action= method="post" enctype="Content-type: multipart/form-data; charset=UTF-8">




where is the name of the form which contains
the japanese characters to be inserted and

is the jsp which inserts the data into the data base.

In the .jsp page which displays or inserts the japanese data
include the follwing.


<%@ page contentType="; charset=UTF-8" %>



I have tried the same and its works perfectly.

Hope this helps.


--Gaya
About | Sitemap | Contact