Size and DisplayWidth with UTF8

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for InterBase & Firebird in Delphi and C++Builder
Post Reply
nandod
Posts: 15
Joined: Mon 29 May 2006 09:03

Size and DisplayWidth with UTF8

Post by nandod » Mon 28 Dec 2009 15:54

Hello,
I have a Firebird 2.1 database, and I have noticed that UTF8 TStringField.Size and DisplayWidth are expressed in bytes and not characters. So, a varchar(100) has both Size and DisplayWidth set to 400.

Is this normal, and if so how do I get the character length of string fields?

Thanks
--
Nando

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

Post by Plash » Wed 30 Dec 2009 08:44

Field size is in characters if you set the UseUnicode extended driver option to True.

Post Reply