In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The perfect solution to the Mysql 4.1language problem (turn) [@ more@] does not need to modify the my.ini. When setting up a database, it is not important to set the character set of the library and table, but it is best to set the GBK character set for fields of text type.
For existing databases, you can convert field codes in the following ways:
ALTER TABLE t MODIFY hoverfly BINARY (100)
ALTER TABLE t MODIFY hoverfly CHAR (100) CHARACTER SET gbk
Note that if you do not modify the program with this method, you will find that the query results are garbled, which can be corrected by adding default-character-set=gbk in the [mysqld] section of the my.ini. But in this way, you will find that the Chinese in the text fields that are not transcoded are garbled.
In fact, there is a simpler way, just execute SET character_set_results = NULL before making the query. And this is whether it is converted or unconverted fields will not appear garbled. The converted fields can be sorted in Chinese normally.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.