Print Thread
Problems reading and writing UTF-8 characters when OracleDictionary.CharacterSize is True
#41005 06/14/11 02:09 PM
Joined: Jun 2011
Posts: 2
A
Member
OP Offline
Member
A
Joined: Jun 2011
Posts: 2
I am having major problems reading from and writing to several different Oracle 10g UTF-8 instances using DOA's TOracleDataset with OracleDictionary.CharacterSize set to True in D2009. As long as the strings I'm reading and storing consist of single-byte, ASCII chars only, no problem arises, but when multi-byte chars are involved the strings appear garbled when reading and are truncated when writing.

In order to reproduce the problem, you need an Oracle 10g instance or higher with NLS_CHARACTERSET=AL32UTF8 and NLS_LENGTH_SEMANTICS=CHAR. The local Oracle client has NLS_LANG=AMERICAN_AMERICA.AL32UTF8.

Steps to reproduce (run in PL/SQL Developer or similar):

create table DOATEST
(
TESTFLD VARCHAR2(4) --due to NLS_LENGTH_SEMANTICS=CHAR, these are 4 chars, not bytes!
);

insert into DOATEST (TESTFLD) values ('

Last edited by aalbarello; 06/14/11 02:42 PM.
Re: Problems reading and writing UTF-8 characters when OracleDictionary.CharacterSize is True
aalbarello #41042 06/17/11 08:58 AM
Joined: Nov 2006
Posts: 23
L
Member
Offline
Member
L
Joined: Nov 2006
Posts: 23
I am having the same problem. Is this there a new version which includes these fixes?

Re: Problems reading and writing UTF-8 characters when OracleDictionary.CharacterSize is True
lecare039 #41723 08/01/11 10:34 AM
Joined: Jun 2011
Posts: 2
A
Member
OP Offline
Member
A
Joined: Jun 2011
Posts: 2
Has anyone at Allround Automations even bothered to reproduce this problem at all? This is a serious issue, if you aren't going to fix this, at least say so, so we can all move on and switch to DevArt's ODAC.

Re: Problems reading and writing UTF-8 characters when OracleDictionary.CharacterSize is True
aalbarello #41736 08/01/11 08:58 PM
Joined: Feb 2007
Posts: 20
B
Member
Offline
Member
B
Joined: Feb 2007
Posts: 20
Unfortunately, recently I realized that we have to migrate our all projects to a library that provides a better support. We were waiting a long time to fix some bugs with no response, but our customers are becoming less tolerant of this waiting.

It seems that the company does not have the courage to say that this product is no longer supported.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.031s Queries: 15 (0.007s) Memory: 2.5107 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-05-01 19:48:12 UTC
Valid HTML 5 and Valid CSS