Automatically setting TOraSession.Options.UseUnicode property
Posted: Fri 16 Nov 2012 11:30
Hi all,
If I set session property "UseUnicode" to true, all string fields are handled as TWideString, and this allows me to read/write 16 bit characters to db.
The problem is that I can set this property event in a session connected to a non unicode db, potentially generating unclear behaviors when trying to insert non ascii characters.
Is there a way to understand from the program if the database is unicode, and setting consequetly "UseUnicode" session property?
Thank you,
Cheers,
Lorenzo
If I set session property "UseUnicode" to true, all string fields are handled as TWideString, and this allows me to read/write 16 bit characters to db.
The problem is that I can set this property event in a session connected to a non unicode db, potentially generating unclear behaviors when trying to insert non ascii characters.
Is there a way to understand from the program if the database is unicode, and setting consequetly "UseUnicode" session property?
Thank you,
Cheers,
Lorenzo