php function UTF8 gb2312 encoding _php tutorial

Source: Internet
Author: User
Today, I'm a little low! Conversion succeeded to see the characters, thinking that the use of a problem, view the source file, incredibly is AndIn the garbled, causing the label to become: Disorderly seven drums to drag?/title> After the entire content is pulled to In the head went, still shouting in the group for a long while, found that the problem, gas is dead!!!
With the Iconv function:
Iconv ("UTF-8", "gb2312", "ABC Sunshine 123");

It is said that this is better, you can ignore the conversion error!
Iconv ("UTF-8", "Gb2312//ignore", "ABC Sunshine 123");

http://www.bkjia.com/PHPjc/317577.html www.bkjia.com true http://www.bkjia.com/PHPjc/317577.html techarticle Today, I'm a little low! The conversion succeeded to see the characters, for the use of a problem, view source files, incredibly is the title and/title in the garbled, resulting in the label became: Title disorderly seven Drum drag ...

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