【发布时间】:2019-03-18 12:39:27
【问题描述】:
当我尝试将此 CSV 加载到 MySQl DB 中时,出现以下错误。
Platz;Team;Saison;Spieltag;Punkte;Sieg;Unentschieden;Niederlage;Geschossen;Bekommen;Differenz;berUnter;HeimAuswrts;Gegner;Gegnertabellenposition_Vor_Spieltag;Gegner_Gegentore;Gegnertore
1;Borussia Dortmund;1819;1;3;1;0;0;4;1;3;1;H;RB Leipzig;6;4;1
2;FC Bayern Mnchen;1819;1;3;1;0;0;3;1;2;1;H;TSG 1899 Hoffenheim;3;3;1
我的 CSV 文件有什么问题?在 DB alle 字段中,只有 Team、HeimAuswrts 和 Gegner 的 datetype int 是 varchar。
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
ERROR: Import data file: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Failed
【问题讨论】:
标签: mysql csv utf-8 ascii iso-8859-1