Home > Backend Development > PHP Tutorial > unicode - php从mysql取出中文显示乱码

unicode - php从mysql取出中文显示乱码

WBOY
Release: 2016-06-06 20:33:01
Original
1501 people have browsed it

取出来的结果显示如下:

"安徽省肥东县中华按蚊对4种常用安徽省肥东县中华按蚊对4种常用杀虫剂抗性现状调查,国际医学寄生虫病杂,2013,Vol.40""安徽省肥东县中华按蚊对4种常用安徽省肥东县中华按蚊对4种常用杀虫剂抗性现状调查,国际医学寄生虫病杂,2013,Vol.40""安徽省肥东县中华æŒ

回复内容:

取出来的结果显示如下:

"安徽省肥东县中华按蚊对4种常用安徽省肥东县中华按蚊对4种常用杀虫剂抗性现状调查,国际医学寄生虫病杂,2013,Vol.40""安徽省肥东县中华按蚊对4种常用安徽省肥东县中华按蚊对4种常用杀虫剂抗性现状调查,国际医学寄生虫病杂,2013,Vol.40""安徽省肥东县中华æŒ

检查下你的mysql的字符编码,然后用iconv去做下编码转换应该就行了。

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