Hey y'all,
Anybody out there with some know-how on retrieving Thai data from a MySQL database (or any non-English encoded charset for that matter)? I am able to store it in MySQL using both UTF-8 or TIS620 (a Thai charset supported by MySQL) but getting it from the database and into the browser screen succesfully hasn't worked out yet. All I get is ??????? instead of Thai.
The problem is not in the browser, the charset is well defined in the head section. The problem is also not with the PHP script fetching the stuff since I am able to echo any static Thai language without problems.
When I run mysql_client_encoding() I get "latin1", which I think should be either UTF-8 or TIS620 (depending on the settings from the database). I have tried all sorts of mb funtions and iconv functions without any joy.
I have worked on other non-english projects before, but it was always about static data. I did some research on character encoding and it gets quite dirty quite fast, further more there are some known bugs regarding UTF-8 in several MySQL versions.
Anybody out there able to push me in the right direction? Tnx much!
-monty
Anybody out there with some know-how on retrieving Thai data from a MySQL database (or any non-English encoded charset for that matter)? I am able to store it in MySQL using both UTF-8 or TIS620 (a Thai charset supported by MySQL) but getting it from the database and into the browser screen succesfully hasn't worked out yet. All I get is ??????? instead of Thai.
The problem is not in the browser, the charset is well defined in the head section. The problem is also not with the PHP script fetching the stuff since I am able to echo any static Thai language without problems.
When I run mysql_client_encoding() I get "latin1", which I think should be either UTF-8 or TIS620 (depending on the settings from the database). I have tried all sorts of mb funtions and iconv functions without any joy.
I have worked on other non-english projects before, but it was always about static data. I did some research on character encoding and it gets quite dirty quite fast, further more there are some known bugs regarding UTF-8 in several MySQL versions.
Anybody out there able to push me in the right direction? Tnx much!
-monty










