未能将 CSV 文件转换为 UTF-8 BOM带 Notepad++以将其迁移到带 SSIS 的 SQL 并保留区域波兰语字母

问题描述

  1. 我有一个波兰语的 CSV,我想通过 SSIS 进入 sql
  2. 我在 Notepad++ 中打开它,它显示 UTF 8。

If it doesn't actually say UTF-8-BOM in the status bar then Notepad++ is only guessing the encoding. Try selecting Encoding > Encode in UTF-8-BOM,save the file,then close and reopen it to confirm the change. After saving it with a BOM (Byte Order Mark) try importing it via SSIS again using code page 65001 (UTF-8) setting and see if it works

@AlwaysLearning

我按照上述用户的建议转换了文件,现在它在角落显示了 UTF8 BOM。我保存了。

  1. 这就是恶性循环:

a) 在预览中选择 SSIS 中的 CSV 作为 UTF-8 时,我可以正确地看到我的波兰语字母。直到我点击运行。然后我收到这个错误Error at Data Flow Task [sql Server Destination [9]]: The column "ColumnName" cannot be processed because more than one code page (65001 and 1252) are specified for it. 我得到了每一列。

b) 当我将连接管理器中的文件类型更改为 1252 时,我可以立即在预览中看到我的波兰语字母丢失了。但现在运行它就像一个魅力,我没有错误

Screenshot1 Screenshot2

这是我尝试过的:

  1. 更改为 1250、65001 等
  2. 勾选Unicode
  3. 将语言环境更改为波兰语、波兰语(波兰)、英语
  4. 谷歌搜索
  5. 搜索堆栈
  6. This 个问题发布到堆栈:

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)