Home  >  Article  >  Backend Development  >  娌圭敾 将这个乱码转成中文,是PHP跟MYSQL数据库弄的!有关编码utf8,latin1!解决方案

娌圭敾 将这个乱码转成中文,是PHP跟MYSQL数据库弄的!有关编码utf8,latin1!解决方案

WBOY
WBOYOriginal
2016-06-13 10:12:23799browse

娌圭敾 将这个乱码转成中文,是PHP跟MYSQL数据库弄的!!有关编码utf8,latin1!!
娌圭敾 将这个乱码转成中文,是PHP跟MYSQL数据库弄的!!有关编码utf8,latin1!!

------解决方案--------------------
$str='娌圭敾';
echo iconv('utf-8','gbk',$str);

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