开发者

PHP & MySQL - HTMLpurifier and special characters display problem

开发者 https://www.devze.com 2023-02-26 05:50 出处:网络
When I enter the special character ☣ into my mysql database it turns into ☣ when stored in the database and when I try displaying the results from the database i开发者_Python百科t is displa

When I enter the special character ☣ into my mysql database it turns into when stored in the database and when I try displaying the results from the database i开发者_Python百科t is displayed as ☣ when it should be displayed as how can I fix this problem?


Run the following command before submitting your commands.

SET NAMES utf8;


PHP docs says using "SET NAMES" isn't recommended. Rather use mysql_set_charset().

0

精彩评论

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

关注公众号