开发者

print out content from my db threw a php function but it doesn't recognize the language (hebrew)?

the output is a set of question mark开发者_Python百科s the all the tables are encoded utf8_general_ci..


you need to set the charset of the connection. you do it like that: mysql_query('SET NAMES utf8'); add this code before your query.

anyway, you better use one of the newer data base extensions of php. http://il2.php.net/pdo or http://il2.php.net/mysqli

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜