Home>Article>Backend Development> How to set the encoding format of php files

How to set the encoding format of php files

青灯夜游
青灯夜游 Original
2021-03-30 19:24:35 2661browse

How to set the encoding format of PHP files: first use notepad software to open the PHP file; then click the "Encoding" option in the top navigation bar, and select the required encoding format in the open drop-down menu, such as "UTF8 BOM" ;Finally save the file.

How to set the encoding format of php files

The operating environment of this tutorial: windows7 system, PHP7.1&¬epad version 7.6.1, DELL G3 computer

Setting the php file Encoding format method

Open your notepad software, then open your php file

How to set the encoding format of php files

Click on the location shown in the picture below and click on encoding

How to set the encoding format of php files

In the encoding pop-up box, you can see the UTF8 BOM format

How to set the encoding format of php files

Select UTF8BOM format

How to set the encoding format of php files

Click save

How to set the encoding format of php files

Then your php file will become UTF8 BOM format

How to set the encoding format of php files

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to set the encoding format of php files. 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