How can I solve phpGET problems related to Chinese parameters?
Source: Internet
Author: User
Urgent !! How can I solve the problem of phpGET Chinese parameters? If & nbsp ;? Md = Hokkaido $ md =$ _ GET ['MD']; // $ md = iconv (& quot; gb2312 & quot;, & quot; UTF-8 & quot ;, $ md); if transcoding is not performed here, only the word "Beihai" is used. However, if transcoding is performed here, e is urgent !! How to solve the php GET Chinese parameter problem?
If
? Md = Hokkaido
$ Md = $ _ GET ['MD'];
// $ Md = iconv ("gb2312", "UTF-8", $ md); if transcoding is not performed, only the word "Beihai" is used,
However, if transcoding is performed here,
Echo $ md becomes useless,
I searched Baidu for the solution and implemented the code of this method. but now I don't know how to solve this problem !!
------ Solution --------------------
What is your page code? After urlencode () encoding?
------ Solution --------------------
On the pass parameters page, use urlencode for parameters and urldecode for parameters.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.