Recently wrote a program in PHP (UTF8 encoding) found in HTTP get send an odd number of Chinese characters to the server side will appear garbled, just beginning to think PHP program or service configuration problems, and then checked a half-day discovery is not, in Google search to see someone said is IE6 there is a compatibility problem, Ie7,ie8,firefox,chrome didn't have this problem.
The workaround for this problem is simple, just use urlencode encoding for processing, and note that if you are using JavaScript-passed parameters, you are using the encodeURI function. In fact, this should be a habit of the problem, for all get pass parameters are urlencode processing, will make the program appear more robust, compatibility, portability is better.
Articles you may be interested in
- Simple example of PHP getting Web content via socket
- Generic PHP anti-injection vulnerability attack filtering function code
- JS Limit text box can only enter numbers (including decimal digits)
- Differences in PHP after adding the static keyword to variables and functions
- div CSS Book tutorial recommended "Proficient CSS+DIV Web page style and layout companion video tutorial"
- PHP converts Arabic numerals into Chinese character functions
- MySQL Replace function replaces the use of a string statement
- Windows cannot start this hardware device because its configuration information (in the registry) is incomplete or corrupted. (Code 19) workaround
http://www.bkjia.com/PHPjc/764070.html www.bkjia.com true http://www.bkjia.com/PHPjc/764070.html techarticle recently wrote a program in PHP (UTF8 encoding) found in HTTP get send an odd number of Chinese characters to the server side will appear garbled, just beginning to think PHP program or service configuration problems, and then check ...