> 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