The problem of garbled characters when Ajax transmits data

1. It is a foreground server, and the background coding is inconsistent

    Causes garbled characters when receiving

2 Encoding functions to process strings through front-end js

    encodeURI for encoding (the encoding set of encoding is utf-8)

     Specific solution connection:

    http://blog.csdn.net/lilovfly/article/details/70256383


    http://blog.csdn.net/Ditto_zhou/article/details/72471569

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325979454&siteId=291194637