How can ODAC support unicode
How can ODAC support unicode
I am using ODAC 5.5 for delphi 7. My application needs to display some chinese character so I need to make it support unicode. I have set the OraSession's UseUnicode property to true. The field in the OraQuery is TWideStringField. But when I get the data from the database, the return value is still "?". My database's character set is unicode. Are there anything else I need to set? Thanks for anyone's help.
The field type is VARCHAR2 in the DB (Oracle 9i) and is TWideStringField in the delphi 7. My ODAC version is 5.50.0.17. I have set the net option to true. I have no problem on the connection. I can successfully connect to the DB. I have set the UseUnicode option property of the TOraSession to true. I also try to set the Charset property to UTF8, but it still cannot display the character "蒳" correctly. If I type the "蒳" in the TntDbEdit control and post it back to the DB. The word is correctly write back to the DB. I can successfully display the word "蒳" from another web application that support unicode. But while I try to refresh the dataset in my delphi application, it gets a "?" instead of "蒳". Thanks for help.
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53