SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Text File Encoding


Text File Encoding

Author
Message
jose 33509
jose 33509
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
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.
stevefromOZ
stevefromOZ
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: Moderators
Points: 10034 Visits: 3757
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search