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].
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;
2. Click "Edit" in the menu bar navigation, and then click "Set Encoding" in the pop-up window;
3. When you see the pop-up dialog box, select "Other", select "UTF-8" in the drop-down box, and click OK;
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;
5. Select "Window"->"Preferences" in the menu bar navigation;
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.
##Related learning recommendations:
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!