Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

Posting chinese letters to a servlet

Thread view: 
Crouchinho - 26 Sep 2006 13:32 GMT
I have a html form which I use to send text info to a servlet, but when it
receives this text in a language such as chinese (cut and pasted from a
chinese site) the servlet can't recogise it and see's only ?'s or character
number 65533. How do I go about getting the servlet to get this info back
into chinese (or whatever other multibyte encoding) especially when it is
unknown exactly what was the posted language?
John O'Conner - 26 Sep 2006 20:53 GMT
> I have a html form which I use to send text info to a servlet, but when it
> receives this text in a language such as chinese (cut and pasted from a
> chinese site) the servlet can't recogise it and see's only ?'s or character
> number 65533. How do I go about getting the servlet to get this info back
> into chinese (or whatever other multibyte encoding) especially when it is
> unknown exactly what was the posted language?

Does this help at all:
http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/

You should concentrate on a few areas to find the problem:
* the charset of the HTML form and page
* the charset used in your servlet to convert form parameters and
incoming data
* the db charset

--
John O'Conner
Crouchinho - 27 Sep 2006 07:11 GMT
>> I have a html form which I use to send text info to a servlet, but when
>> it
[quoted text clipped - 16 lines]
> --
> John O'Conner

cheers for the reply. I've fixed it - it turns out i was encoding it twice
on the servlet


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.