The server returns gb2312 data, using jquery ajax response for Chinese garbled, how to break?

such as question: the server returns a HTML document encoded by gb2312. Use jquery ajax get to request this html document, and the response is garbled in Chinese. How to break it?

Apr.13,2021

Let the backend change, but if the backend does not change, see if you can beat him

< hr >

if you can't type: these methods are all OK. You need to test them yourself. I don't know if there are any special characters in your document.

Menu