php include garbled solution: first confirm whether the encoding of the file is utf-8; then open it with notepad; then select "save as" and select "utf8" to save.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
Please confirm whether the encoding of the file is also utf-8 .
Open with Notepad, then "Save as"
Look at the encoding of the file
Usually after processing like this, there will be no problem of Chinese garbled characters
[Recommended learning: "PHP Video Tutorial"]
The above is the detailed content of What to do if php include is garbled. For more information, please follow other related articles on the PHP Chinese website!