Home>Article>Backend Development> How to solve zend studio php garbled problem
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.
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
Click "Edit" in the menu bar navigation, and then click "Set Encoding" in the pop-up window ”
When you see the pop-up dialog box, select “Other”, select “UTF-8” in the drop-down box, and click OK
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
##Select "Window"->"Preferences" of the menu bar navigation 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 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 toThe 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!