微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决未能将 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 举报,一经查实,本站将立刻删除。