Posting chinese letters to a servlet

C

Crouchinho

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?
 
J

John O'Conner

Crouchinho said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top