PHP does not support Unicode character sets, so why is Unicode output correctly?

Source: Internet
Author: User
If it is a Chinese character, then it should not be the correct output ah. And for example, PHP file encoding is UTF-8, then the internal string type is also UTF-8?
My answer is not.
Since that string does not support UTF-8, why does it not appear wrong when it is displayed??

Reply content:

If it is a Chinese character, then it should not be the correct output ah. And for example, PHP file encoding is UTF-8, then the internal string type is also UTF-8?
My answer is not.
Since that string does not support UTF-8, why does it not appear wrong when it is displayed??

PHP file encoding is u8,string storage is also U8 Ah, do not believe you urlencode look at the good. If the charset of your page is set in Meta, U8 will certainly not show errors. You try to set it to GBK to see if he is wrong.

I think it refers to the unsupported is not a variable name, function name, parameter name it?
Unicode is stored as a string, but it's encoded. PHP does not parse and he doesn't have problems.

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