Today I found that when inserting Chinese into mysql, a lot of them appeared? ? ? ? ? ####Garbled characters.
Solution (straightforward)
Find the my.ini file, usually in the path of
, you can also use Everthing, this tool is simple and crude to find!
After opening this file, find [client] [mysql] [mysqld]
[client] Add default-character-set=utf8 under [mysql] respectively
Add character-set-server=utf8 under [mysqld]
Save and close the file.
Then restart the mysql service.
Done!