• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Help in Internationalization

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
normally in database column width will always
6 times width you give in textfield maxlength
what i mean is if textfield length is 500
then in table column width is 500*6=3000
This is standard internalization procedure
 
vivek java
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi dixit i have question
In My application I want to send attachements
along with plain message(just like yahoo).
But how do i protect folders(in appache-tomcat server) which will contain this attachements.what i mean user can type URL of this folder and see this attachements.One more problem folders also will be dynamic that is each time user is added to my application folders will also be added for each user(which will contain his attachements).
Basically i want to hide folder url in jsp pages please give some advice
 
get schwifty. tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic