Solution to the garbled output of windows php: 1. Check the encoding of the PHP file itself; 2. Open the CMD window and right-click on the title to select properties; 3. Change the font to "Songti" or "Lucida". Can.
#The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.
How to solve the problem of garbled output in windows php?
Solution to the problem of Chinese output garbled characters in PHP under the Windows window:
Follow the following methods
1. The PHP file itself is UTF-8;
2. In the CMD window, right-click on the title and select Properties, modify the font, the default is bitmap font, this font is a pitfall, change it to "Song Ti" or Lucida (see which one is in the options).
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to solve the problem of garbled output in Windows PHP. For more information, please follow other related articles on the PHP Chinese website!