把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
EF连接mysql中文乱码,显示????
标签:source roo ble png alt nbsp catalog var character
查看更多关于EF连接mysql中文乱码,显示????的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did117334