Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Mangesh Dixit

Greenhorn
+ Follow
since Jun 16, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mangesh Dixit

We are developing one Global application which will be deployed in multiple languages like englilsh,japanese etc.
here is my problem:-
When we pass an english character from frontend(JSP)to servlet and then to database it occupies 1 byte.
But when I am passing japanese characters , for a single character its taking 6 bytes. Ideally it should take 4 bytes for each japanese character.
Currently I am able to store and retrieve the data correctly.
Now my question is:-
1) Why it is taking 6 bytes instead of 4 bytes?
2 Is there any standard way to deal with multilingual characters when passing them from a JSP to servlet and then storing them in database?
In my JSP I have set the character set using this line
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
In servelt I am getting the parameters using normal request.getParameter();
We are working on Weblogic 7.0 and Oracle 8.1.7(charset is UTF-8)
Please respond if you have any idea.
Mangesh.
19 years ago
JSP