Home>Article>Backend Development> Help you solve the problem of Chinese garbled characters displayed on the PHP interface

Help you solve the problem of Chinese garbled characters displayed on the PHP interface

烟雨青岚
烟雨青岚 forward
2020-07-14 13:31:40 2665browse

Help you solve the problem of Chinese garbled characters displayed on the PHP interface

When writing a form submission project, I encountered that the PHP interface output could not display the Chinese interface.

Later, I consulted relevant information and came up with a solution.

The code is as follows:

   123 
PHP 很有趣!"; echo "Hello world!
"; echo "我计划学习 PHP!
"; echo "这段话", "由", "多个", "字符串", "串接而成。"; ?>

Open the php code as a text file, and when saving as, select the encoding method utf-8

Help you solve the problem of Chinese garbled characters displayed on the PHP interface

Put it on the server and it will display Chinese.

Thank you for reading, I hope you can benefit from it.

This article is reproduced from: https://blog.csdn.net/LEE18254290736/article/details/50759692

Recommended tutorial: "php tutorial"

The above is the detailed content of Help you solve the problem of Chinese garbled characters displayed on the PHP interface. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete