简体   繁体   中英

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

Bl Michał Sopoćko, Priest

I get this

Bl Micha? Sopo?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).

Next try to convert database table to this encoding:

ALTER TABLE <table_name> CONVERT TO CHARACTER SET <character_set> COLLATE <collate_name>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM