I introduced the PHP development tool Zend Studio7 Tutorial, in the use of the process when we create a new (import) of the project itself is UTF8 when the code, such as WordPress, we found when the use of Zend Studio Open PHP project file when debugging variables such as Chinese garbled problems, or when you use Zend Studio to create a new UTF8 encoded PHP file, open will also appear in Chinese garbled problem, this is due to Zend Studio's default character encoding is caused by GBK, so how does Zend Studio Chinese garbled problem solve?
For the entire PHP project debugging or a single PHP file using Zend Studio to open the problem of Chinese garbled, the solution is the same, but Zend Studio portal is different, easy to confuse for beginners PHP users.
The solution of Chinese garbled problem in single PHP file
First use Zend Studio7 to open a UTF8 encoded PHP file, click on the FileProperties, the following interface appears
Configure Zend Studio7 file character encoding to resolve Chinese garbled problems
We can see that Zend Studio's default character encoding is GBK, which causes the Chinese garbled problem to occur when the file character encoding is inconsistent with Zend Studio's default character encoding, so we just click on other and choose UTF-8, OK can restore the php file Chinese normal display.
Solution to Chinese garbled problem when debugging project
Relative to a single PHP file in Chinese garbled problem resolution, debugging items appear in the php file garbled problem, the only difference is that the way to enter, you need to select the appropriate items, the right key to select Properties or select Menu ProjectProperties into the following interface
Configure Zend Studio7 Project character encoding to solve Chinese garbled problem
You can see the basic interface and the same as before, you just select and the project itself character encoding to match the code can solve the Chinese garbled problem.
Zend Studio Chinese garbled solution notes
When choosing a character encoding, when Zend Studio provides a character encoding option that does not have the character encoding you want, you can manually enter the corresponding character encoding in the other box, but be careful about capitalization, preferably uppercase, because I find the character encoding lowercase when it feels zend Studio7 Conversion Chinese garbled is not very stable.
At this point in the use of Zend Studio in the process of encountering Chinese garbled problem solution and configuration tutorial is finished.
Note : PHP Web Development Tutorials-leapsoul.cn Copyright, reproduced in the form of links to indicate the original source and this statement, thank you.