CSV 中的变音符号但在 SQL 服务器导入向导中变成奇怪的字符

Diacritic characters in CSV but turned into strange characters in SQL Server Import Wizard

我有一个编码为 UTF-8 的 CSV 文件,我从 IMDb.com 下载了它。我想使用导入向导将此数据导入 SSMS 2016(或 2014)。这是 CSV 的示例(注意达拉斯买家具乐部的主管是 Jean-Marc Vallée):

"position","const","created","modified","description","Title","Title type","Directors","You rated","IMDb Rating","Runtime (mins)","Year","Genres","Num. Votes","Release Date (month/day/year)","URL"
"38","tt1636826","Tue Feb 16 00:00:00 2016","","","Project X","Feature Film","Nima Nourizadeh","6","6.7","88","2012","comedy, crime","155628","2012-03-01","http://www.imdb.com/title/tt1636826/"
"39","tt0119528","Tue Feb 16 00:00:00 2016","","","Liar Liar","Feature Film","Tom Shadyac","6","6.8","86","1997","comedy, fantasy, romance","217817","1997-03-18","http://www.imdb.com/title/tt0119528/"
"40","tt0790636","Tue Feb 16 00:00:00 2016","","","Dallas Buyers Club","Feature Film","Jean-Marc Vallée","7","8.0","117","2013","biography, drama","321602","2013-09-07","http://www.imdb.com/title/tt0790636/"

我在导入向导中 select 平面文件源,select 我的文件,并使用默认选项(同时添加 " 作为文本限定符)。但是,这是一个示例我所看到的:http://imgur.com/a/i53hB

变音符号 é 正在变成 É。我在导入向导中尝试 select 在 "Locale" 旁边输入 Unicode,但它将所有内容都转换为汉字并将其全部放在一个单元格中。

知道这里发生了什么吗?

将平面文件连接上的编码更改为代码页 65001 (UTF-8) 并确保数据类型为 unicode 字符串 DT_WSTR。

此 link 包含更多有关该过程的分步说明。 https://www.mssqltips.com/sqlservertip/3119/import-utf8-unicode-special-characters-with-sql-server-integration-services/