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
Method/Step
First open PHP file with Zendstudio, see the Chinese garbled
Click "Edit" in the menu bar navigation, then click "Set Encoding" in the popup window.
After you see the popup dialog box, select "Other" and select "UTF-8" in the dropdown box, click OK
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
Select window, Preferences, menu bar navigation
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