I'm going to use a URL to pass a parameter, and then display it in PHP and find that Chinese is garbled
My URL address is:http://127.0.0.01/test_phone.php?smess_uid=aaa&smess_key=123456&smess_mobil=186689594921&. Smess_text=%e6%8e%a2%e8%b7%af%e8%80%85
The content of Chinese is%e6%8e%a2%e8%b7%af%e8%80%85 = Pathfinder
But on the parameter receiving page, the Chinese will appear garbled
Here is the code for my accept parameter
$smess _uid = $_get["Smess_uid"]; $smess _key = $_get["Smess_key"]; $smess _mobil = $_get["Smess_mobil"]; $smess _text = $_ get["Smess_text"]; $url = "http://utf8.sms.webchinese.cn/?Uid=". $smess _uid. " &key= ". $smess _key." &smsmob= ". $smess _mobil." &smstext= ". $smess _text;echo $url;
The following results are accepted
http://utf8.sms.webchinese.cn/?Uid=aaa&Key=123456&smsMob=186689594921&smsText= 鎺 ㈣ Alum Keys
Ask the hero to help modify, the results can be received in Chinese, because my parameter is the need for Chinese content
Thank you
Reply to discussion (solution)
Copy your code directly without any problems.
Both Firefox and Google display Chinese characters normally.
Header ("content-type:text/html; Charset=utf-8 ");