Blogger Information
Blog 7
fans 0
comment 1
visits 5757
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP中文乱码问题
bokewinner
Original
649 people have browsed it

PHP乱码问题的解决方式:

方法1:加上html的标记<meta http-equiv="Content-type"  content="text/html;charset=UTF-8">

<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<?php
echo "显示中文";
?>

方法2:在PHP中加入header函数

<?php
header("Content-type:text/html;charset=UTF-8");
echo "显示中文";
?>


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post