An elusive coding problem. Seldom posts
Strange, I Apache + window with URL in the parameter pass to complete normal
Test server Linux+apache The same script with the same URL (with the Chinese parameter) passed, there is a garbled problem.
After that, in the test server directory, the incoming. htaccess write Adddefaultcharset Utf-8 unhelpful.
My PHP and HTML page encoding is all unified. It's all utf-8.100 cents.
------Solution--------------------
Use UrlEncode to encode first, then decode with UrlDecode.
It is estimated that Linux is an English version of OS.
------Solution--------------------
Don't really know how to help LZ top
------Solution--------------------
Change the Linux default code to try!
------Solution--------------------
Url?urlencode (params), then decode with UrlDecode. Or you find urldecode don't need it at all.
------Solution--------------------
In the URL with the Chinese parameter passed to URL encoding
a.php
PHP Code
$name = "Test"; $encodeName =urlencode ($name); echo "url pass parameter test";
------Solution--------------------
Learn