PHP development tool ZendStudio_6.1 what is the ultimate solution to garbled code? PHP development tool ZendStudio_6.1 the ultimate solution to garbled code [written in front] if you find that you often need to set file encoding for a project, please confirm that the project belongs to the PHP development tool ZendStudio_6.1. the ultimate solution to garbled code
?
PHP development tool ZendStudio_6.1 the ultimate solution to garbled code
[Preface] if you find that you often need to set the file encoding for a project, check the attribute settings of the project.
Click properties, and the default is inherited from container (GBK), now set to the following UTF-8, so that the file created in this project will be utf8 encoded.
?
First of all, I want to explain that I am a beginner who just learned PHP! When I first came into contact with PHP, I was worried about finding development tools for a while !! So I came to PHPCHINA for help and found my favorite PHP development tool named Zend Studio for Eclipse-6.1.0!
Secondly, many netizens say that Zend Studio_6.1 does not support encoding well! I want to refute him. The 6.1 encoding support is much better than the 5.5 support !! At least the UTF8 encoded items can be correctly displayed!
Okay, so many preface !!
==================================
The next step is to witness the miracle moment ----- the beginning of teaching
==================================
1. use zend_6.1 to open a UTF-8 encoded php file !!
Php Tutorial 3.JPG
My God, garbled ....
2. don't worry! Go to Edit --- SetEncoding. the following dialog box is displayed:
Php teaching 4.JPG
Have you seen it? The default value is GBK. open the UTF8 project and garbled characters.
3. after the code is changed, the text is normal! For example:
Php Tutorial 1.JPG
==============================
Okay. it's not good enough !!! Some may ask why the Debuger Output window in the software and the Browser Output window are garbled ??
This is what I want to talk about today!
Open windows ---- Preferences ,:
Php Tutorial 5.JPG
.
Next, a window will pop up. we only need to modify it based on the graph !!
:
Php Tutorial 6.JPG