Fix Zendstudio Open utf-8 format php file garbled

Source: Internet
Author: User

General PHP files are utf-8 No BOM format, with the Zendstudio default setting when the Chinese will be garbled, this is because the Zendstudio default encoding format is GBK format, so we need to reset its encoding format, This is the zendstudio9.0.0.4 version, the other version is basically the same

Tools/Materials
    • Pc
    • Zendstudio 9.0.0.4
Method/Step
    1. First open PHP file with Zendstudio, see the Chinese garbled

    2. Click "Edit" in the menu bar navigation, then click "Set Encoding" in the popup window.

    3. After you see the popup dialog box, select "Other" and select "UTF-8" in the dropdown box, click OK

    4. At this time you will see the Chinese back, but you open the project's other PHP files, will find still garbled, this is because the default configuration of Zendstudio is not modified, the above method is suitable for individual file encoding changes, the following is to modify the code in the default configuration

    5. Select window, Preferences, menu bar navigation

    6. Select "General", click on "Working Space", and select "Other", drop-down box select "UTF-8", "OK", then you open the project's other files, the default open encoding format is "UTF-8" format

      END
Precautions
    • Click "General" and "workspace" to see the right side, do not click on the "Work Space options"
    • English version is also as above operation, only need to choose the corresponding English option, it is not Chinese, Chinese experience has been written, can see

Fix Zendstudio Open utf-8 format php file garbled

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.