The reason why eclipse php is garbled is because the encoding is not uniform. The solution is: 1. Open the project; 2. Open the properties; 3. Change the text file encoding to UTF-8.
The operating environment of this article: Windows7 system, Eclipse IDE 2020-06 R version, DELL G3 computer
What to do if eclipse php is garbled ?
The Chinese characters are garbled when writing PHP code in eclipse
I wrote the code using editplus and then opened it with eclipse and the Chinese characters were garbled. This is because the encoding is not uniform. , the original GBK is now changed to UTF-8.
Modify
Method:
Project-->Properties-->Text file encoding
Recommended learning:《 PHP video tutorial》
The above is the detailed content of What to do if eclipse php is garbled. For more information, please follow other related articles on the PHP Chinese website!