[Lazarus] Ord of a UTF8 char

Michael Schnell mschnell at lumino.de
Mon Mar 29 09:08:17 CEST 2010


On 03/27/2010 07:24 PM, Antônio wrote:
>      // What the meaning of s[i] at this position?
>   

Nothing that makes sense unless you want to deal with the internals of
UTF-8 coding.

IMHO you better use the appropriate RTL function to convert the string
to a 32 bit Unicode string. Now you can do

c32 := s32[i];

-Michael




More information about the Lazarus mailing list