UTF8 encoding not working when using ajax

后端 未结 4 1072
梦毁少年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:29

    Encoding is more than specifying the meta tag and content type - the files themselves must really be in the encoding you specify, or you'll get mojibake.

    Check that everything is using UTF-8, your database, database connection, table columns. Check that any static files you are including are also encoded in UTF-8.

提交回复
热议问题