[fpc-devel] TField.AsString and Databases with UTF-8 charset

Michael Van Canneyt michael at freepascal.org
Fri Jul 24 18:08:49 CEST 2009

On Fri, 24 Jul 2009, Marco van de Voort wrote:

> In our previous episode, Michael Van Canneyt said:
>> Somehow Delphi 2009 must also be confronted with this, with their native
>> unicode support. Hm.
> Afaik D2009 always works in 2 byte units. Surrogates are a problem of the
> user I guess.
> I don't fully understand why this function must return exact characters and
> not e.g. words.

TField.Size is the declared size in characters. What the size of the data 
buffer is, is another matter, and depends largely on design decisions. That's
what we need to resolve.


More information about the fpc-devel mailing list