When using AJAX to return a page to GET, most of the Chinese in the RESPONSETEXT will be in chaos, because xmlhttp is encoded in the UTF-8 code in the decoding test when the responseText is processed, and the Chinese character will be displayed correctly when the server is actually sending out the data stream of UTF-8 and sends out the GBK. When the stream is coded, it's a mess. The solution is to add a HEADER to the stream sent to indicate what code stream is sent, so that XMLHTTP will not be fooled. Phperz.com