There are no garbled characters in the page input background and no showvariableslike 'collation %' in the database. character_set_client is the client encoding method, character_set_connection is the encoding used to establish a connection, and character_set_database is the encoding; character_set_results result set encoding; characte
There are no garbled characters in the background, and no show variables like 'colation % 'in the database. character_set_client is the client encoding method, character_set_connection is the encoding used to establish a connection, and character_set_database encoding; character_set_results result set encoding; characte
The page is passed in to the background without garbled characters, and the entered database is garbled. <无>
Show variables like 'collation % '; among them, character_set_client is the client encoding method; character_set_connection is the encoding used to establish a connection; character_set_database database encoding; character_set_results result set encoding; character_set_server Database Server encoding. As long as the above four encoding methods are the same, no garbled error occurs. After execution, the result is the database server code or lantin1. Modify the following to set @ character_set_server = 'utf8 ';