[Y-devel] Proposal: message structure change

Peter Prohaska pitrp at wg78.de
Fri Feb 27 14:18:56 GMT 2004


On Fri, Feb 27, 2004 at 02:50:54PM +0100, Matthias Heinz wrote:
> Am Fr, den 27.02.2004 schrieb Alexey Boyko um 10:28:
> > > > > All UTF-8.  I'm not going near the quagmire of other language
> > > > > encodings.
> > > > I'm still thinking what better - UTF-8 or UCS4.
> > > The problem with UTF-8 is that it doesn't support every char on earth.
> > > It lags some special japanese/chinese chars.
> > 
> > What? UTF-8 is byte encoded UCS-4, so it contains all chars, that UCS-4.
> 
> 
> But not every char on earth... soon we will need a 3byte endconding
> charset to handle it all

I cannot follow. AFAIK UTF-8 defines how to encode characters
no matter how many bytes are needed per character.

t.i. 01111111
     11011111 11111111
     11101111 11111111 11111111
     ^^^
     count bits till '0' and you have the number of bytes

Am I wrong here?

regards,
  peter.



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved