I have a survey-design site that I've built for my company where a
user can create any questions/answers, etc and have someone take a
survey online. The company now wants it multi-lingual-capable, so
we've been including this capability and it's been going pretty well.
The scenario is that we have a survey question and the user would
click on a button/image that calls the AJAX and comes back with the
question in all of the other languages that they might have as part
of their survey design so that they could edit any one individually
without having to carry the survey around in all possible languages
which could slow things down quite a bit with a 50-question
survey---the ajax comes back with the currently selected question
(only) in all of the languages that the designer might be using.
They can then make changes to one of those in a text or textarea
field and when the control loses focus, it saves (again using ajax)
and comes back to display that it was saved and shows the new
I started using the AJAX capabilities and everything works great
except for the encoding with internet explorer 6x (and netscape
navigator 7x)--seem to come back (to the server) as a bunch of
question marks: ????? when I submit some Chinese. It also blows up
with certain special characters in Spanish and probably any other
language with special characters will come back with question marks. English submits fine though.
Firefox and Opera both encode the info correctly, so the server is
handling it ok and spitting it back out ok. Windows server.
One note, when I submit the Chinese using the entire page such as a normal form submittal (not
through the ajax call) ie sends it to the server correctly.
So from what I can gather, the ajax in ie is not encoding it
correctly or is double-encoding it for some reason. We have the
document header set to UTF-8. Ajax in ie seems to be ignoring it or
doubling-up on the encoding for some reason.
Do you have any possible suggestions on how to fix this problem?
Thank you for your time.
0 · ·