Home  >  Article  >  Backend Development  >  How to solve the problem of garbled output in Windows PHP

How to solve the problem of garbled output in Windows PHP

藏色散人
藏色散人Original
2022-01-06 10:18:032140browse

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.

How to solve the problem of garbled output in Windows PHP

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Can php delete files?Next article:Can php delete files?