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

WBOY
Release: 2016-06-13 10:12:23
Original
824 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template