Ajax Post Mode Submit the Chinese garbled

xiaoxiao2021-04-06  263

In fact, there is also a lot of online information, some people say

SetRequestHeader ("Content-Type", "Application / X-WWW-FORM-URLENCODED; CHARSET = UTF-8");

You can, try it.

Later, use the escape () function to encode the parameter value.

Note that HTTP is transmitted in the network UTF-8 encoding.

转载请注明原文地址:https://www.9cbs.com/read-132375.html

New Post(0)