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

Marco van de Voort marcov at stack.nl
Fri Jul 24 18:26:13 CEST 2009

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.

The question is if it still does in D2009. I doubt it. I think it is
encoding-base unit. (1 or 2)

More information about the fpc-devel mailing list