[fpc-devel] TField.AsString and Databases with UTF-8 charset
Michael Van Canneyt
michael at freepascal.org
Fri Jul 24 18:59:18 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.
>
> The question is if it still does in D2009. I doubt it. I think it is
> encoding-base unit. (1 or 2)
Ah, this I don't know, I don't have D2009.
Michael.
More information about the fpc-devel
mailing list