Handling foreign characters
spireite
Posts: 25
I've noticed that the script generated is incorrect when it comes to handling foreign characters. e.g. letters with umlauts. When the script is run, the characters are not created as letters with umlauts. Is there anything we can do to correct this? The script is applied through SQL-DMO.ExecuteImmediate method, and so a compare throws up all records as different because the characters aren't correctly handled. The database coulmns involved are not defined as unicode btw
Cheers,
Paul
Cheers,
Paul
This discussion has been closed.
Comments
When you say the script is not generated correctly, how are you viewing the script? Are you opening it up in Query Analyzer? If so, this can't cope with the encoding that we use - you'll need to open it in notepad and then save it as UTF-16.
- Neil
Red Gate Software Ltd
Sequence is - Compare (via toolkit),
execute resulting script immediately against the database that was compared to. This is fine.
Save script, zip, and upload to server.
An application we wrote (in VB) downloads zip, unzips it, loads the SQL script created in toolkit - running against endusers database to synch it. The script is loaded and executed in SQLDMO.ExecuteImmediate method.
Any workarounds I can use, because this is going to be a big issue !
Thx
Red Gate Software Ltd
The importing application is written in VB6 SP5. The reasoning behind this (though we would have preferred .NET), was that the rest of our application suite also installed at the time was not .NET (actually Gupta Team Developer). For a very small importing application, we didn't want to force the installaton of the .NET framework down users throats.
However, if VB6 is the problem, then maybe a change is required.
Red Gate Software Ltd
VB is not my forte, coming from 4GL background and latterly dealing purely on the database side. Originally I was using FileScriptingObject, then on request switched to a traditional OPEN FOR INPUT.
Personally, I wish I'd pushed the .NET side and dropped VB.
Cheers.