Size and DisplayWidth with UTF8

Size and DisplayWidth with UTF8

Postby 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
nandod
 
Posts: 15
Joined: Mon 29 May 2006 09:03

Postby Plash » Wed 30 Dec 2009 08:44

Field size is in characters if you set the UseUnicode extended driver option to True.
Plash
Devart Team
 
Posts: 2844
Joined: Wed 10 May 2006 07:09


Return to dbExpress driver for InterBase & Firebird