1 查看表的编码
show create table table_name;
2 转换表的编码
alter table t_user_friend convert to character set utf8;