Cause PHP page in Chinese garbled problem has a large number of collection and solution, resulting in Chinese garbled is generally the database and page encoding inconsistency caused by, I will give you a direct introduction to the solution. 、
1. When creating a database, select Utf-8 encoding
2. Select UTF-8 encoding when creating PHP files
3. Prevent garbled mysql_query (' Set names UTF8 ') in data transmission;
4. On the static page add
Personal Build Justice: It is recommended that the encoding of the database, PHP files, and HTML charset be set to a consistent utf-8 before development.
http://www.bkjia.com/PHPjc/632109.html www.bkjia.com true http://www.bkjia.com/PHPjc/632109.html techarticle cause PHP page in Chinese garbled problem has a large number of collection and solution, resulting in Chinese garbled is generally the database and page encoding inconsistency caused, the following I will give you a direct introduction to solve ...