Re: writing (char) 129 to file
- From: John O'Conner <john@xxxxxxxxxxxx>
- Date: Wed, 22 Feb 2006 08:43:18 GMT
Oliver Wong wrote:
"Thomas Fritsch" <i.dont.like.spam@xxxxxxxxxxx> wrote in message news:newscache$s200vi$0t7$1@xxxxxxxxxxxxxxBTW: I suspect, that Sun now regrets the Java-1.0 design-decision that a
char is 2 bytes long.
Yes. They allude to this regret in the Javadocs too: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Character.html
- Oliver
I think that given the situation, we came up with the most reasonable solution for 1.5. Unicode had evolved past 65k characters for a long time...frankly, we ignored it as long as possible. With 1.5, the demand was overwhelming...and legitimate, real characters had shown up in the Unicode 4.0 specification. We had to find some way to move Java up to the new 4.0 spec. We considered practically everything...making a new char32 type, using ints exclusively as characters, changing the definition of char to be 32 bits wide, etc. Finally, we have what we have now...after much debate. It isn't perfect, but it works.
Best of luck,
John O'Conner
.
- References:
- writing (char) 129 to file
- From: leov
- Re: writing (char) 129 to file
- From: Thomas Fritsch
- Re: writing (char) 129 to file
- From: Oliver Wong
- OT: Re: writing (char) 129 to file
- From: Thomas Fritsch
- Re: Re: writing (char) 129 to file
- From: Oliver Wong
- writing (char) 129 to file
- Prev by Date: Re: Learning J2ee, got newbie question.
- Next by Date: Re: List in J2ME
- Previous by thread: Re: writing (char) 129 to file
- Next by thread: Re: OT: Re: writing (char) 129 to file
- Index(es):
Relevant Pages
|