I'm having a time with posting chinese characters to the server. I have the following:
The ajaxForm is posting chinese content but when I look at the header content it is changed. I post in the text field 请选择基色 but what gets put in the header is ����������.
Any tips? [ March 07, 2008: Message edited by: Gregg Bolinger ]
A bit of an update. I noticed that the content-type in the header being sent to the server is "text/plain". I was able to tell apache to ALWAYS use UTF-8 regardless of what the page states so now I get "text/plain; utf-8" which is, maybe, half way there.
What I am expecting is "text/html; utf-8" and I am not understanding why the POST isn't being sent like this even though the page is sent as such.
I moved this to the Tomcat forum because the exact same code works fine in weblogic which leads me to believe this has to be a Tomcat issue since that is the only difference between the two environments.
Weblogic seems to set the header correctly and all is well. Tomcat does not. I've been googling but not coming up with much so any help would be appreciated.