Check the command:
mysql> show variables like '%char%';
Desired result:
Use mysql command settings:
If you still have not utf8 encoding, please check the configuration file can also use the mysql command settings:
set character_set_client = utf8;
set character_set_server = utf8;
set character_set_connection = utf8;
set character_set_database = utf8;
set character_set_results = utf8;
set collation_connection = utf8_general_ci;
set collation_database = utf8_general_ci;
set collation_server = utf8_general_ci;