The coding problem is hard to understand. I rarely post strange messages. apache + window uses url-included parameters to pass the normal test server linux + apache and uses the same script and the same url (with Chinese parameters, there is a garbled problem .. then input it in the directory of the test server. htaccess write AddDefaultCharsetutf-8 does not make up .. php and html page encoding are all unified. encoding is hard to understand. few posts
It's strange that the url-included parameter transfer is normal in apache + window.
The test server linux + apache uses the same script with the same url (with Chinese parameters) for transmission, leading to garbled characters ..
Then input. htaccess in the directory of the test server to write adddefacharcharset UTF-8 ..
Php and html page encoding are all unified. they are all UTF-8 experts. let's take a look at the first. 100 tips.
------ Solution --------------------
Use urlencode encoding first, and then urldecode decoding.
It is estimated that the English version of linux OS is used.
------ Solution --------------------
Not familiar with lz top
------ Solution --------------------
Try to change the default encoding of linux!
------ Solution --------------------
Url? Urlencode (params), and then urldecode. Or you find that urldecode is not needed at all ..
------ Solution --------------------
URL encoding is required for passing Chinese parameters in the URL.
A. php
PHP code
$ Name = "test"; $ encodeName = urlencode ($ name); echo "URL passing parameter test ";
------ Solution --------------------
Learning