Question

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 ?
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top