June 14th, 2006, 09:23 AM
Problem when displaying Thai characters using ajax
I'm developing a page using ajax and in some parts of the page
I want to display Thai characters. However, the Thai characters are not displayed correctly, instead they are displayed like this '???????'.
This only comes to problem in ajax page. These Thai characters are displayed correctly in non ajax page.
After googling for some time, I suspect the problem is in xmlhttp object. I'm using responseText method to get data from this xmlhttp object. And it's said responseText doesn't work for encoding non ASCII characters.
However I still haven't found any working solution to my problem. For my server side programming I'm using ASP and these Thai characters I read from database.
Please any suggestions, if anyone ever experience this before.
Thanks a lot.