Page 1 of 1

TStringField keeps only half of the typed data

Posted: 23.08.2014, 14:25
by atasoft
Hi,
I am using Zeos 7.1.3 stable in Lazarus 1.0.14 and I have the following problem:
In a TZQuery I use a persistent TSringField and I set its Size and DisplayWidth to 20. I have a DBEdit in a Lazarus form connected to the TStringField.

When I run the compiled program and i write English letters the DBEdit allows me correctly to write 20 characters.
If I write Greek (or other Unicode) characters, it allows me to write 20 characters but it keeps only the first 10 characters.
These is very annoying for the users.

Notice that the TZConnection component has these settings ClientCodePage=UTF8 and ControlsCodePage=cCP_UTF8. The database is SQLite3.

I will appreciate any help which will solve the above problem.

Best regards,
Andreas

Re: TStringField keeps only half of the typed data

Posted: 24.08.2014, 12:49
by EgonHugeist
Have a look too http://sourceforge.net/p/zeoslib/tickets/58/
and i did post on http://forum.lazarus.freepascal.org/ind ... 574.0.html too

Wondering why. The ticket says in LCL everything is fine. I can't believe there is another issue except the display width..