Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Text File Encoding Expand / Collapse
Author
Message
Posted Thursday, June 5, 2014 10:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, June 5, 2014 12:43 PM
Points: 1, Visits: 3
I have a package that produces a text file based on a text file template which is saved as a UTF-8 file. I do this so that the actual file created is also created as a UTF-8 file. The problem is that if you turn on the overwrite option in the properties of the flat file connector, the file created is saved as ANSI instead of UTF-8. The only way I know to avoid this is to have the overwrite option turned off, but that presents a different challenge which is data getting appended to the destination file that should not be there. Does anyone have thoughts/suggestions on how to best tackle this issue?
Thanks.
Post #1577916
Posted Thursday, June 5, 2014 11:28 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: Moderators
Last Login: Yesterday @ 8:56 AM
Points: 1,815, Visits: 3,455
Hi Jose,

Bit of a known issue. Seems the best work around is to create two copies of your template and then file copy the empty one to the directory and 'always' use append.

For a solid explanation of what's happening, scroll to the bottom of this thread.




Steve.
Post #1577960
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse