Fetch json with non ASCI characters like ü, chrome displays network displays correctly

后端 未结 1 696
灰色年华
灰色年华 2021-01-17 00:04

I am using fetch native in chrome dev tools. In the response.json() the data of the job are received but non ascii characters ate bit displays correctly.

The network

相关标签:
1条回答
  • 2021-01-17 00:26

    I finally solved it, I used native xhttpRequest and this native function

    xhr.overrideMimeType("application/json;charset=iso-8859-1");
    

    which I took from here:

    Displaying accented character in Javascript

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