How to solve the XMLHTTP submission back to garbled?

zhaozj2021-02-11  186

How to solve the XMLHTTP submission back to garbled?

Below is a solution: 1. Test from the server returns the XML string containing Chinese, using the GET method for testing. 2. Submit the XML containing the Chinese string to the server and return to the client in the form of the server in the process, where there is no use of string decoding, which greatly improves efficiency!

This example requires two files: xmlencode.htm and xmlencode.asp ==================================== ==

Xmlencode.htm ============