How to solve the problem of garbled output in Windows PHP

藏色散人
Release: 2023-03-14 18:18:02
Original
2053 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!