Red Gate forums :: View topic - SyncScriptEncoding UTF8 includes a preamble
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Data Compare Previous Versions
SQL Data Compare Previous Versions forum

SyncScriptEncoding UTF8 includes a preamble

Search in SQL Data Compare Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
ladenedge



Joined: 11 Jan 2012
Posts: 2
Location: United States

PostPosted: Wed Jan 11, 2012 5:27 pm    Post subject: SyncScriptEncoding UTF8 includes a preamble Reply with quote

It says in Switches used in the command line that the default should result in a UTF-8 encoding without a BOM. However, when I omit this switch in Data Compare 9, I do indeed get a BOM. In addition, I tried explicitly setting the option in all of the following ways:

  • /SyncScriptEncoding:UTF8
  • /SyncScriptEncoding:UTF8WithPreamble
  • /SyncScriptEncoding:UTF8WithoutPreamble

All of them seem to result in a UTF-8 file that includes a BOM. The ASCII argument worked as advertised.

I feel pretty certain this option is broken, but perhaps I was missing something on my end?
Back to top
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6645

PostPosted: Thu Jan 12, 2012 2:10 pm    Post subject: Reply with quote

Thanks for letting us know about this. I have logged a bug with reference number SDC-1301 so this will get fixed.

Regardless of whether you use UTF8 or UTF8WithPreamble, the preamble gets written to the file, contrary to the documentation. I had a look at the bytes of the sync script file, and with either option the file starts with xEFBBBF.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group