php脚本不支持中文?
php脚本不支持中文出现乱码是因为缺少header声明;
<?phpheader("Content-type: text/htm<mark style="color:transparent">来源gaodaimacom搞#^代%!码网</mark>l; charset=utf-8"); echo '中文'; ?>
然后将php文档用编辑器转化为utf编码。
更多PHP相关知识,请访问搞代码!
以上就是php脚本不支持中文的详细内容,更多请关注搞代码gaodaima其它相关文章!