Solutions to Chinese garbled characters encountered by PHP beginners_PHP Tutorial

WBOY
Release: 2016-07-13 17:29:51
Original
1169 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...
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