UTF-8 encoded html pages show � (questions marks) instead of characters

后端 未结 7 1104
暖寄归人
暖寄归人 2020-11-27 05:32

I have the standard XAMPP installation on win7 (x64). Having had my share of encoding troubles in a past project where mysql encoding did not match with the php enconding wh

相关标签:
7条回答
  • 2020-11-27 06:28

    In my case, database returned latin1, when my browser expected utf8.

    So for MySQLi I did:

     mysqli_set_charset($dblink, "utf8");    
    

    See http://php.net/manual/en/mysqli.set-charset.php for more info

    0 讨论(0)
提交回复
热议问题