I'm using a Flat File Connection to read a file. This file contains UTF-8 data, but the file does not have a Byte Order Mark. (I checked this with notepad++)

The CodePage from the flat file connection is set to '65001' and UniCode is set to 'False'.

While processing this file and copying the data to the database, some characters are wrong.

What is the best/easiest solution ?

  1. Change some settings on the flat file connection ? (This will probably also mean that I need to change the codepage from the columns.)
  2. Manually add the Byte Order Mark to the file before processing?
  3. Something else ?
有帮助吗?

解决方案

The database table was defined as varchar instead of nvarchar, this solved my problem.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top