define("EW_ENCODING", "utf-8", TRUE);
$encode = EW_ENCODING ;
mysql_set_charset(EW_ENCODING,$con);
$charset = mysql_client_encoding($con);
echo "The current character set is: $charset\n";
爲什麼不是這個代碼打印utf-8
?當我運行此代碼時,它實際上會打印define php我的代碼有什麼問題
The current character set is: latin1
我該如何獲得所需的結果?
我很討厭MySQL,每次都用我的頭腦。 > _ < – deceze 2011-05-24 08:47:17