ODBC DatabaseUpdate and Unicode
Posted: Mon Mar 16, 2015 3:55 am
I've hit a brick wall with updating an SQL database via the DatabaseUpdate routine where unicode characters are involved.
I'm able to read unicode text via DatabaseQuery thanks to information in other threads on the forum. I do have the Unicode compiler option turned on. I've debugged the strings retrieved via DatabaseQuery and they do contain the unicode text. Operating system is Windows Server 2008; database is on an SQL Server 2008R2 server.
However, when I build an SQL statement that includes unicode text and execute it via DatabaseUpdate, the "unicode text" that makes it into the database just contains a bunch of ?'s in place of non-ASCII characters. I've checked the database fields and they are the unicode-compatible nvarchar format.
Any tricks to using DatabaseUpdate with unicode text?
Thank you!
-Tim.
I'm able to read unicode text via DatabaseQuery thanks to information in other threads on the forum. I do have the Unicode compiler option turned on. I've debugged the strings retrieved via DatabaseQuery and they do contain the unicode text. Operating system is Windows Server 2008; database is on an SQL Server 2008R2 server.
However, when I build an SQL statement that includes unicode text and execute it via DatabaseUpdate, the "unicode text" that makes it into the database just contains a bunch of ?'s in place of non-ASCII characters. I've checked the database fields and they are the unicode-compatible nvarchar format.
Any tricks to using DatabaseUpdate with unicode text?
Thank you!
-Tim.