Does the PHP document have different storage encodings that affect the browser? Solution

Source: Internet
Author: User
Does the PHP document have different storage encodings that affect the browser?
This section of code index.php
PHP Code
  
  <meta http-equiv= "Content-type" content= "text/html;charset=gb2312" >
  
  

Edit the default storage encoding in Notepad is ANSI with computer access to normal

However, the use of mobile phone access to Chinese characters garbled English normal

Later, the saving code was changed to UTF-8 mobile phone and computer will be able to access the normal

The phone is Sony Ericsson W995 's own browser Safar or something.
Is there a function that turns the character into a UTF-8 and then outputs it?

------Solution--------------------
Consistent encoding of file encoding and output this is the principle.

Conversion functions

Iconv (' GBK ', ' UTF-8 ', ' Chinese ');
------Solution--------------------
Have an impact. File encoding is the encoding format of some constants within a file
------Solution--------------------
Explore

So how do you convert a batch of files from ANSI to UTF-8?

------Solution--------------------
Explore
So how do you convert a batch of files from ANSI to 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.