In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Character Set Support in MySQL 4.1 has two aspects: Character sets and Collations. Support for character sets is refined to four levels:
Server, database, table and connection.
In practice, even if you set the default character set of the table to UTF-8 and send the query with UTF-8 encoding, you will find that the database is still garbled. The problem lies in this connection layer. The solution is to execute the following sentence before sending the query:
SET NAMES 'utf8';
In PHP, select_db is executed after connect/pconnect.
[@more@]
SET NAMES 'x' statement is equivalent to 3 statements:
SET character_set_client = x;
SET character_set_results = x;
SET character_set_connection = x;
Reference:
http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.