At the moment we have to run a skript that converts all the files that have changed before commiting it in our source control.
I'm hoping this feature is going to be in one of the next SPs

Code: Select all
Computer\HKEY_CURRENT_USER\SOFTWARE\Gupta\SQLWindows 7.4\Settings\PreferUTF8Encoding
PS: This CDK function does not change the registry setting but sets the value only for the running process.BOOL CDKSetUTF8Option( int nLoadOrSave, BOOL bEnable )
This is CDK external function defined in cdkiXX.dll.
You can call this function anytime before loading/saving application by using UTF8 encoding.
This updates process global setting so that this is effective until end of process.
Parameters:
nLoadOrSave:
0 Enable or disable Save As UTF8 option
1 Enable or disable Read As UTF8 option
2 Enable or disable both options
bEnable: TRUE to enable specified option.
Return Value:
TRUE if successful, or FALSE if an error occurs.
SaveOutlineAsText
can be dynamically switched between UTF8 and UTF16 by calling CDKSetUTF8Option
before saving.At the moment of writing (latest TD 7.4.5) there is an issue with CDKSetUTF8Option. It does not work at all:TD 7.3.5 now assumes that text application file saved with TD 7.2 and later version uses
UTF8 encoding if application file does not have BOM (Byte Order Mark) even though
"Use UTF-8 Encoding For Read" option is not set.
Users browsing this forum: [Ccbot] and 2 guests