Home  >  Article  >  Backend Development  >  How to solve zend studio php garbled problem

How to solve zend studio php garbled problem

藏色散人
藏色散人Original
2020-10-23 09:14:342579browse

The solution to zend studio php garbled code: first open the php file with zendstudio; then click "Edit" in the menu bar navigation, then click "Set Encoding" in the pop-up window; finally select "UTF" in the drop-down box -8", click OK.

How to solve zend studio php garbled problem

Recommended: "PHP Video Tutorial"

Solution to ZendStudio opening php files in utf-8 format with garbled characters

First open the php file with zendstudio, what you see is Chinese garbled characters

How to solve zend studio php garbled problem

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

How to solve zend studio php garbled problem

When you see the pop-up dialog box, select “Other”, select “UTF-8” in the drop-down box, and click OK

How to solve zend studio php garbled problem

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 the encoding change of a single file. , the following is to modify the encoding in the default configuration

How to solve zend studio php garbled problem

##Select "Window"->"Preferences" of the menu bar navigation

How to solve zend studio php garbled problem

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

How to solve zend studio php garbled problem

Notes

Click "General"->" After "Workspace", look directly to the right, do not click "Options under Workspace"

The English version also operates as above, just select the corresponding English option. If it doesn't work, just Chineseize it. The experience of Chineseization has been written. Please refer to

The above is the detailed content of How to solve zend studio php garbled problem. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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