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

WBOY
WBOYOriginal
2016-07-13 17:29:511195browse

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:
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