This is because, in the GBK environment, the encoding is 0xab0x5c, so it is a problem caused by & amp; rsquo; 5c & amp; rsquo .. in general, we recommend that you use unicode as the character set of the code file. if you want to use GBK, you can switch it. however ,... "> <LINKhref =" http://www.p
This is because, in the GBK environment, the encoding of "signature" is "0xab 0x5c, so it is a problem caused by '5c ..
In general, we recommend that you use unicode as the character set of the code file. if you want to use GBK, you can switch it.
However, if your script requires GBK encoding, how can this problem be avoided?
Beginning with PHP5.3, PHP introduced Zend Multibyte to support multi-character set encoding. the above code is modified as follows:
Then, configure in php. ini:
Mbstring. internal_encoding = cp936
Or run PHP with the following command:
$ Php-dmbstring. internal_encoding = cp936 test. php
In this way, PHP will execute test in the cp936 encoding mode. php. for more information about Zend Multibyte, see PHP: what is-enable-zend-multibyte configure option ?, PHP declare