mysql utf-8中文乱码,服务器上配置了 “character_set_server | latin1 ”, 怎么办?
可以在见表的时候指定表的字符编码。
create table wechat_report
(
report_id bigint not null auto_increment,
date_id int,
ver_id int,
open2all int,
html_report longtext,
primary key (report_id)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;