I’m bored recently doing PHP page connection to mysql
I found Chinese garbled characters
The final solution is recorded for future reference
1. When creating the database, select utf-8 encoding
2. Select UTF-8 encoding when creating a php file
3. Prevent garbled characters during data transmission mysql_query('set names utf8');
4. Add
to the static page
You should just pay attention to the four points above.!