Recently debug PHP code on notepad++, follow the example code to debug, the results display in Chinese when a bunch of garbled, so online Baidu, there are 2 ways to solve:
There are 2 ways to debug by:
1. Menu Plugin-nppexec:
"Plugins"-"nppexec"-"Console output/input enonding"
The default display is OEM (DOS), where console output is changed to UTF-8
Note: The Nppexec plugin needs to be Plugin by the keyword "nppexec" via the menu "plugin"-"manager"-"Show Plugin Manager"
2. Menu run-"Run"
This way you need to modify the console encoding, the default encoding can be viewed by right-click on the console border, my display GBK
Use the CHCP command to modify the console encoding:
Chcp 65001 is replaced by UTF-8 code page
Chcp 936 can be swapped back to the default GB
For details, refer to the following links
Http://blog.chinaunix.net/uid-25508301-id-3081930.html
Of course, to run smoothly also need to fill in the following code, I run the PHP code as an example:
Cmd/k D:\YourPhpDir\php.exe "$ (Full_current_path)" & ECHO. & PAUSE & EXIT
As for the browser to run, is still groping, there is a result will be posted method, my environment is win 7+nodepad++ 7.2
notepad++ Debugging PHP code Chinese display garbled