I'd like to ask you a question about Php+mysql character encoding.
Want to set up the site to UTF8, check a lot of information, the truth also understand, the page, program, database character encoding unified together. The truth is clear, do not know how to do.
Web server space rented by someone else, MySQL config I can't control myself.
Page with the DREAMWEAVER5 design, the default encoding is exactly utf-8. What else needs to be done?
Share to:
------Solution--------------------
The database is human, you can not modify the settings
What you can do is
1, the establishment of the table when the text section plus a connection to proofread gbk_chinese_ci or utf8_general_ci
Tell MySQL what character set to store data in
2. After connecting to the database, execute set names GBK or set names UTF8 instruction
Tell MySQL what character set to use to communicate with him