PHP use get variable to get Chinese garbled solution _php Tutorial

Source: Internet
Author: User
It is well known that in PHP get is not the delivery of the Chinese language is generally garbled, but sometimes we need to pass the Chinese, take help the home of the recent project "Share/Collection", the author of the PHP program encountered such problems, the acquisition of the Chinese title was passed to Sina collection, It becomes garbled.

How to solve this problem? We:

Normal notation (garbled):

Copy to ClipboardWhat to refer to: [www.bkjia.com]@ $title _this = $_get["title"];

Change to the following code (normal):

Copy to ClipboardWhat to refer to: [www.bkjia.com]@ $title _this = iconv ("UTF-8", "gb2312", $_get["title"]);

The problem is solved, do not forget to help the home of the new Project-Share & collection to see it. Http://www.bkjia.com/res/share/

http://www.bkjia.com/PHPjc/364440.html www.bkjia.com true http://www.bkjia.com/PHPjc/364440.html techarticle It is well known that in PHP get is not the delivery of the Chinese language is generally garbled, but sometimes we need to pass the Chinese, take the Fire network recent project "Share/collection" To say it ...

  • 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.