Page 1 of 1

AL32UTF8 and AL16UTF16

Posted: Tue 18 Sep 2007 09:24
by occhiostanco
Hi all,
we are using dbExpress for oracle 3.20.9 with Delphi 7.

We are experimenting problems with characterset AL32UTF8 and AL16UTF16.
Persistent TStringFileds are generated with double size (in AL16UTF16)
and *4 size (in AL32UTF8).
So a VARCHAR2 (16 CHAR) results in a TstringField.Size=32 in AL16UTF16
and in a TstringField.Size=64 in AL32UTF8

Any idea?

Thanks in advance
Roberto

Posted: Wed 19 Sep 2007 07:47
by Plash
The Size property of TStringField contains the field size in bytes. So, it is normal behaviour that field size is 32 bytes in UTF-16 and 64 bytes in UTF-8.