解决PHP页面中输出中文乱码

UTF-8和GB2312编码不一致的时候,会导致直接输出中文乱码的现象,需要转码:

<?php
echo iconv("GB2312","UTF-8","Copyright &#169; 2016 pony.hk 小马网络 All Rights Reserved. <a href='http://www.miitbeian.gov.cn' target='_blank'>浙ICP备14029976号</a>");
?>