utf-8 special characters not displaying

前端 未结 8 1354
暗喜
暗喜 2020-12-03 06:47

I moved my website from my local test server to NameCheap shared hosting and now I\'m running into a problem - some of the pages aren\'t displaying utf-8 special characters

8条回答
  •  盖世英雄少女心
    2020-12-03 07:47

    If you're using PHP and none of the above worked (as it was my case), you need to set the locale with utf-8 encoding.

    Like this

    setlocale(LC_ALL, 'fr_CA.utf-8');
    

提交回复
热议问题