TWideStringField data

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gregoryliss
Posts: 13
Joined: Mon 19 Dec 2005 16:31

TWideStringField data

Post by gregoryliss » Fri 16 Nov 2007 20:56

running the following query:

select '¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ' from dual;
yields:
¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿

using TWideStringField(Qry.Fields[0]).Value

ODAC 6.10.1.10 for Delphi 7
session.UseUnicode := True
NLS_LANG: AMERICAN_AMERICA.UTF8
Oracle Client and Server 10.2.0.1.0

Any thoughts?

Thanks in advance

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 19 Nov 2007 08:19

Character set of text in the SQL property must correspond to the character set in the NLS_LANG parameter. So that you should change your NLS_LANG parameter to your Windows character set (for example, AMERICAN_AMERICA.WE8MSWIN1252), or set the text of SQL property in UTF-8 encoding.

Post Reply