Getting weird characters when fetching value in mysql database

前端 未结 3 1999
执念已碎
执念已碎 2020-12-21 14:03

I\'m getting this kind of result in my database ’ everytime i\'m typing this character

I already use mysql_query(\'SET CHARACTER

3条回答
  •  心在旅途
    2020-12-21 14:51

    I had the same problem and I fixed with:

    mysql>charset utf8mb4

    I read somewhere that utf8 is broken in mysql and utf8mb4 must be used instead.

提交回复
热议问题