UTF8 encoding not working when using ajax

后端 未结 4 1022
梦毁少年i
梦毁少年i 2021-01-17 19:56

I recently changed some of my pages to be displayed via ajax and I am having some confusion as to why the utf8 encoding is now displaying a question mark inside of a box, wh

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-17 20:20

    In my case neither of the solutions worked until I placed

    header('Content-type: text/html; charset=utf-8');
    

提交回复
热议问题