[英]Export csv from excel with foreign characters for import into MySQL
When I export this from Excel in a csv file to import into MySQL 当我从Excel中导出这个csv文件导入到MySQL
Bl Michał Sopoćko, Priest BlMichałSopoćko,牧师
I get this 我明白了
Bl Micha? Bl Micha? Sopo?ko 索普?KO
Is there a way to export the file to have the right characters? 有没有办法导出文件以具有正确的字符?
First you should check the encoding option that was specified during the export from Excel (in save dialog -> Tools button -> Web options -> Encoding Tab). 首先,您应该检查从Excel导出期间指定的编码选项(在保存对话框 - >工具按钮 - > Web选项 - >编码选项卡)。
Next try to convert database table to this encoding: 接下来尝试将数据库表转换为此编码:
ALTER TABLE <table_name> CONVERT TO CHARACTER SET <character_set> COLLATE <collate_name>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.