URL address value Chinese garbled problem (get)

Source: Internet
Author: User
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 ");
  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.