orac and unicode?
Posted: Wed 06 May 2009 13:15
Dear all,
I use bcb2009. I have a (unicode) TEdit with hebraic characters in it.
I have a button, clicking the button generates a unicode string containing
L"update owner.table set column='"+TEdit1->Text+L"' where id=2345"
The oracle column type is NVARCHAR2(50);
This string is copied into the TQuery's SQL statement and executed, one row updated, no error.
Problem: when re-reading the field (UnicodeString s=Query->FieldValues["column"]), I receive question marks and not unicode text.
Selecting in oracle does this, also.
why why why?
NVarchar2 is supposed to store unicode, no matter what is the db character set.. Why didn't odac update the column to unicode?
Regards,
Alain
I use bcb2009. I have a (unicode) TEdit with hebraic characters in it.
I have a button, clicking the button generates a unicode string containing
L"update owner.table set column='"+TEdit1->Text+L"' where id=2345"
The oracle column type is NVARCHAR2(50);
This string is copied into the TQuery's SQL statement and executed, one row updated, no error.
Problem: when re-reading the field (UnicodeString s=Query->FieldValues["column"]), I receive question marks and not unicode text.
Selecting in oracle does this, also.
why why why?
NVarchar2 is supposed to store unicode, no matter what is the db character set.. Why didn't odac update the column to unicode?
Regards,
Alain