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