Re: Java and Unicode

From: Elliotte Rusty Harold (elharo@metalab.unc.edu)
Date: Wed Nov 15 2000 - 09:23:24 EST


One thing I'm very curious about going forward: Right now character
values greater than 65535 are purely theoretical. However this will
change. It seems to me that handling these characters properly is
going to require redefining the char data type from two bytes to
four. This is a major incompatible change with existing Java.

There are a number of possibilities that don't break backwards
compatibility (making trans-BMP characters require two chars rather
than one, defining a new wchar primitive data type that is 4-bytes
long as well as the old 2-byte char type, etc.) but they all make the
language a lot less clean and obvious. In fact, they all more or less
make Java feel like C and C++ feel when working with Unicode: like
something new has been bolted on after the fact, and it doesn't
really fit the old design.

Are there any plans for handling this?

-- 

+-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer | +-----------------------+------------------------+-------------------+ | The XML Bible (IDG Books, 1999) | | http://metalab.unc.edu/xml/books/bible/ | | http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/ | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java news: http://metalab.unc.edu/javafaq/ | | Read Cafe con Leche for XML news: http://metalab.unc.edu/xml/ | +----------------------------------+---------------------------------+



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:21:15 EDT