Ask the php hero to solve the garbled characters in zendstudio8.0.1.

Source: Internet
Author: User
Ask the php Daxia to solve the garbled problem in zendstudio8.0.1. Why does a new phpfile in zendstudio8.0.1 still encounter garbled problem when UTF-8 is set? add header (& quot; content-type: t ask php to solve the garbled problem in zend studio8.0.1
Why is a new php file created in zend studio8.0.1 garbled with UTF-8 already set?

------ Solution --------------------
Add:
Header ("content-type: text/html; charset = utf-8 ");
------ Solution --------------------
In fact, I found that zd and eclipse both have this situation, that is, you have set the encoding, but it may not properly convert the file encoding for you. The best way is to use other tools for conversion, such as editplus notepad ++...
------ Solution --------------------
Even if you use ed and not sometimes, this problem still occurs ..
------ Solution --------------------
Discussion

Even if you use ed and not sometimes, this problem still occurs ..

------ Solution --------------------
Generally, this problem does not occur if UTF-8 is used and bom is not used. Unless you add the Framework page iframe to the iis server

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.