Solve the problem of data garbled in phpMyAdmin2.6 or later versions. When php (as the mainstream development language) MyAdmin2.6 and later versions support multi-language sets, we can use php (as the mainstream development language) MyAdmin to manage databases, when php (as the mainstream development language) MyAdmin2.6 and later versions support multi-language sets, we can use php (as the mainstream development language) MyAdmin to manage databases, the query results contain garbled Chinese characters, but these problems are not found in our php (as the current mainstream development language) program calls.
It seems that php (as the mainstream development language) has a problem with the configuration of MyAdmin2.6. to solve this problem, I searched for relevant information on google. There are many such problems, but none of them can solve the problem. it seems that you have to solve it by yourself.
... The process of searching source code is cumbersome
It took half a day to finally find a compromise.
Go to the root directory of MyAdmin2.6 in php (as the mainstream development language) and open the following file:
Libraries/select_lang.lib.php (as the mainstream development language)
1, find the line of "zh-gb2312", The zh-gb2312 into a zh-gb2312-utf-8
Why? This is because the server will filter out the language without "-UTF-8". in line 168th of libraries/database_interface.lib.php (as the current mainstream development language), the server will say: "To prevent confusion ",: <
Or if you don't change the zh-gb2312 into a zh-gb2312-utf-8, you can remove the filter. If it is removed, it will be OK.
2. find "$ MySQL (the best combination with PHP) _ charset_map = array (" that line
Set gb2312 => gb2312,
Change to gb2312 => latin1,
Save, OK, in the enter php (as the current mainstream development language) MyAdmin management, select language chinese simplified (zh-gb2312-utf-8)
Let's look at your Chinese data.
Therefore, my solution is to modify the two words in the file libraries/select_lang.lib.php (as the mainstream development language), which is convenient and convenient, haha.
Because MySQL and later versions support multi-language sets, we can use php (as the mainstream development language) to manage databases using MyAdmin ,...