标签:source roo ble png alt nbsp catalog var character
查看当前默认编码方式
show VARIABLES like ‘character_%‘;
把linan1类型改成utf8
set character_set_database=utf8;
ps:这一步我感觉关系不大?不过网上都说让改,我没改好像也没问题
ef连接字符串修改:
Data Source=localhost;port=3306;Initial Catalog=UserControl;user id=root;password=123456;Character Set=utf8;
最后一步,困扰了我半天才发现,把列的类型也改成utf8
标签:source roo ble png alt nbsp catalog var character
原文地址:https://www.cnblogs.com/GongJx/p/14680701.html