如何解决未能将 CSV 文件转换为 UTF-8 BOM带 Notepad++以将其迁移到带 SSIS 的 SQL 并保留区域波兰语字母
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。我保存了。
- 这就是恶性循环:
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 时,我可以立即在预览中看到我的波兰语字母丢失了。但现在运行它就像一个魅力,我没有错误。
这是我尝试过的:
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。