[Lazarus] Unicode on Windows

Marcos Douglas md at delfire.net
Tue Apr 10 03:41:19 CEST 2012


On Mon, Apr 9, 2012 at 5:43 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> On Mon, 9 Apr 2012 16:59:57 -0300
> Marcos Douglas <md at delfire.net> wrote:
>
>>[...]
>> > Length = size in bytes
>> > UTF8Length = number of code points
>> >
>> > There is no generic function LengthInGlyphs, because this depends on the
>> > font engine and some code points do not have a glyph.
>>
>> In the future, we will transform UTF8Length deprecated, only use
>> Length function and the FPC will know wich the correct codepage use,
>> or it is not going happen never?  =)
>
> For UTF-8 and UTF-16 you will always need both size in bytes and number
> of codepoints.
>
> My hope some day we can all forget codepages.

+1

Marcos Douglas




More information about the Lazarus mailing list