Home > Backend Development > PHP Tutorial > Solutions to Chinese garbled characters encountered by PHP beginners_PHP Tutorial

Solutions to Chinese garbled characters encountered by PHP beginners_PHP Tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 17:29:51
Original
1213 people have browsed it

Beginners of PHP must have encountered the problem of Chinese garbled characters. I have also encountered it. Now I will share the solution I used with everyone. If anyone has a better solution, please reply.

in=mysql_db_query("lib","select * from mytb",);

Preceded by

mysql_query("set names gb2312"); or mysql_query("set names gbk");


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/509214.htmlTechArticlePHP beginners must have encountered the problem of Chinese garbled characters. I have also encountered it. Now I will use the solution Share it with everyone. If anyone has a better solution, please reply. in=mysql_db_q...
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
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
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