0
我想從csv創建一個sql表。 在這個csv裏面,我有一個帶有一些泰文字符的字段'first name',所以我在我的sql表中設置了utf8的類型。要轉儲我使用這個命令行的CSV:將帶有非拉丁字符的csv轉儲到mysql表中
mysql -hlocalhost -uroot -p***** --default-character-set=utf8 TH -e "
load data local infile
'/home/tom/th_customer.csv'
into table customer
fields terminated by ','
lines terminated by '\n'
ignore 1 lines
"
而不是讓泰國字符,但,我只是???? 有什麼建議嗎?
*,其中*'不'????出現? – Biffen 2014-09-11 13:04:19
在mysql數據庫中@Biffen – woshitom 2014-09-11 13:04:53
你是如何看待數據庫?它*可以*正確地存儲*數據,但無論你用什麼來查看它都會擾亂編碼。 – Biffen 2014-09-11 13:06:18