[Y-devel] Proposal: message structure change
Rupert Mazzucco maz at ap.univie.ac.at
Fri Feb 27 17:41:20 GMT 2004
On Sat, 28 Feb 2004, Dmitry Platonov wrote:
> On Fri, Feb 27, 2004 at 09:31:09AM +0100, Matthias Heinz wrote:
> > The problem with UTF-8 is that it doesn't support every char on earth.
> > It lags some special japanese/chinese chars.
>
> It supports ALL chars in UCS4 (see man 7 uft8). 2 billions is far more then number of characters on earth.
UCS4 is a 4 byte encoding of Unicode, but Unicode is, from an
information theoretical point of view, a 21 bit character set.
This is one criticism of UCS4: it wastes about 35% of space.
(The other being the issue of endianness.)
The only problem with UTF-8 I can see is that many applications
will probably prefer to use UCS4 internally, because of its fixed
length. That means that by using UCS4 for transport, probably a
lot of reencoding could be saved, both on server and on application
side. The endianness issue is not a big one, once it has been
identified, and most applications will run locally anyway.
Unicode doesn't include every character on earth, nor is it
designed to. It is designed to include every character on earth
that is in some kind of common usage, and where there is one
missing - as it seems to be the case with some Chinese and Indic
chars - they are going to add them. As Mark said: We can leave
that safely to the Unicode consortium to sort out.
Regards,
Rupert
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved