I would like to ask you a question about php + mysql character encoding. thank you for setting the website to UTF8. I have checked a lot of information and understood the truth, the page, program, and database characters are encoded in a unified manner. The reason is clear, and I don't know how to do it. I can't control the MYSQL configuration of someone else who rents the website server space. The dreamwe on the page asks you a question about php + mysql character encoding. thank you.
I want to set the website to UTF8. I checked a lot of information and understood the truth. the page, program, and database character encoding should be unified. The reason is clear, and I don't know how to do it.
I can't control the MYSQL configuration of someone else who rents the website server space.
The dreamweaver5 is designed for the page. the default encoding is UTF-8. What else do I need to do? Share:
------ Solution --------------------
The database is human, and you naturally cannot modify the settings.
What you can do is
1. add a connection to the Chinese field during table creation to verify gbk_chinese_ci or utf8_general_ci
Tell mysql which character set to store data
2. after connecting to the database, run the set names gbk or set names utf8 command.
Tell mysql which character set to use to communicate with him
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.