MySQL Forums
Forum List  »  PHP

utf-8 Thai characters
Posted by: John Francis Lee
Date: April 10, 2006 12:49AM

Hello,

I am using MySql 4.1.11, php 4.3.11, phpMySdmin 2.8.0.3

My problem is Thai characters. Specifically ก Gaw Gai, ญ Yaw Ying and แ Sara Ae do not show up correctly. The other characters seem ok.

I have my.cnf :

[mysqld]
max_connections=30
default-character-set=utf8
init-connect = 'SET NAMES utf8'

phpMyAdmin reports :

MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_unicode_ci
MySQL client version: 4.1.11

However when I open a page containing :
<?php var_dump(iconv_get_encoding('all')); ?>

I get :
array(3) {
["input_encoding"]=> string(10) "ISO-8859-1"
["output_encoding"]=> string(10) "ISO-8859-1"
["internal_encoding"]=> string(10) "ISO-8859-1"
}

Which maybe my problem.

In any case... how can I fix this?
Thanks for any help that might be forthcoming.

Options: ReplyQuote


Subject
Written By
Posted
utf-8 Thai characters
April 10, 2006 12:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.