On Thu, 24 May 2007 12:40:39 +0200
"Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> TUTF8Char is declared as:
> 
>   TUTF8Char = string[8];
> 
> Why not string[4]? Shouldn't all utf8 chars fit in 4 bytes?
> 
> Just curious, I saw this while implementing fpgui utf-8 char reception
> system and thougth if I need this or not...

At the point it was not sure, if 4byte is really enough, because some
RFC talk about 6 bytes and some about combined chars.
IMO 4 bytes are enough and for combined chars we should define a
another type (string).


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to