notepad++ Debugging PHP code Chinese display garbled

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.