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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:12:23
Original
881 people have browsed it

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

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

Related labels:
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
Latest Issues
Problems React encounters when using utf-8
From 1970-01-01 08:00:00
0
0
0
How to create utf-8 files in python?
From 1970-01-01 08:00:00
0
0
0
Always use UTF-8 encoding
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template