Home  >  Article  >  Backend Development  >  PHP interface displays Chinese garbled characters

PHP interface displays Chinese garbled characters

WBOY
WBOYOriginal
2016-07-29 09:01:48852browse

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

Later, I checked the 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. When saving as, select the encoding methodPHP interface displays Chinese garbled charactersutf-8

Open it on the server and it will display Chinese

The above has introduced the Chinese garbled characters displayed on the PHP interface, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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