I have a merge script that automatically merges changes to a target branch. For some reason, when it tries to merge a sql file, it checks it in as UTF-8 format. How do I change my script to automatically save the merged file in ANSI format ?
Is the format of the revision in your sandbox ANSI or UTF-8?
From the --guiCharacterEncoding=value option for si diff in the Integrity 10.6 CLI Reference for Configuration Management, by default, the character set in the preferences matches the default character set provided by the client's operating system, and the encoding preferences for each view and command can be set in the client. For instance, if you go to the client menu to Client --> Preferences, and then in the Preferences Configuration window's left pane drill down to Configuration Management --> Commands --> Merge, in the right pane you will see a drop-down for Character encoding.
Let me know if that helps.
Message was edited by Michael Lizak: Corrected typographical errors, formatting, and title. Added a hyperlink to the title.
i looked at the character encoding and it is set to Windows-1252. It looks like it's only happening to one file. Is there a way I encode it in the script just for this particular file ?
After reading the Integrity 10.6 CLI Reference for Configuration Management, I would try si merge --guiCharacterEncoding="Windows-1252" MemberToMerge
You can look up the si merge command in Integrity 10.6 CLI Reference for Configuration Management for more details on its use in your particular situation. Note: it will overwrite the working file in your sandbox with the results of the merge, which is normal and expected behavior.