开发者

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

开发者 https://www.devze.com 2023-02-26 21:50 出处:网络
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.

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

精彩评论

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