Home > Article > Backend Development > php script does not support Chinese
php script does not support Chinese?
The php script does not support Chinese and garbled characters appear because of the lack of header declaration;
<?php header("Content-type: text/html; charset=utf-8"); echo '中文'; ?>
Then use an editor to convert the php document into utf encoding.
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of php script does not support Chinese. For more information, please follow other related articles on the PHP Chinese website!