Page 1 of 1

Size and DisplayWidth with UTF8

Posted: Mon 28 Dec 2009 15:54
by nandod
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

Posted: Wed 30 Dec 2009 08:44
by Plash
Field size is in characters if you set the UseUnicode extended driver option to True.