Home > Backend Development > PHP Problem > What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

coldplay.xixi
Release: 2023-03-02 12:02:02
Original
2173 people have browsed it

How to solve the garbled problem of ZendStudio opening php files in UTF-8 format: First open zendstudio, click [Edit-Set Encoding]; then select [Others-UTF-8], and select [In the menu bar navigation] Window-Preferences]; finally click [General-Workspace-Others-utf-8].

What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

How to solve the problem of garbled php files opened in utf-8 format by ZendStudio:

1. First open with zendstudio php file, you see Chinese garbled characters;

What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

2. Click "Edit" in the menu bar navigation, and then click "Set Encoding" in the pop-up window;

What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

3. When you see the pop-up dialog box, select "Other", select "UTF-8" in the drop-down box, and click OK;

What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

4. At this time, you will see that Chinese is back, but if you open other PHP files in the project, you will find that the characters are still garbled. This is because the default configuration of zendstudio has not been modified. The above method is suitable for encoding a single file. Change, the following is to modify the encoding in the default configuration;

What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

5. Select "Window"->"Preferences" in the menu bar navigation;

What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

6. Select "General"->Click "Workspace"->Look to the right->Select "Others"->Select "UTF-8" from the drop-down box->" OK", then when you open other files in the project, the default opening encoding format is "UTF-8" format.

What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?

##Related learning recommendations:

PHP programming from entry to proficiency

The above is the detailed content of What should I do if the PHP file in UTF-8 format opened by ZendStudio is garbled?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template