开发者

Echo Internation language retrieved from MySQL Db

开发者 https://www.devze.com 2023-02-07 13:30 出处:网络
I have setup my DB collation to utf8_unicode_ci but when echo the results of db it prints out ??? or dif开发者_开发百科ferents charachters for different internation languages, any idea what is wrong?

I have setup my DB collation to utf8_unicode_ci but when echo the results of db it prints out ??? or dif开发者_开发百科ferents charachters for different internation languages, any idea what is wrong?

My html header is <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


As Shrapnel commented, solution is mysql_set_charset('utf8');

0

精彩评论

暂无评论...
验证码 换一张
取 消