Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25519 > unrolled thread

Re: JLS 3/e -- Lots Of Errors

Started byLawrence D'Oliveiro <ldo@geek-central.gen.new_zealand>
First post2011-02-06 01:30 +1300
Last post2011-02-05 10:53 -0500
Articles 3 — 3 participants

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: JLS 3/e -- Lots Of Errors Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-02-06 01:30 +1300
    Re: JLS 3/e -- Lots Of Errors Lew <noone@lewscanon.com> - 2011-02-05 09:37 -0500
    Re: JLS 3/e -- Lots Of Errors Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-02-05 10:53 -0500

#25519 — Re: JLS 3/e -- Lots Of Errors

FromLawrence D'Oliveiro <ldo@geek-central.gen.new_zealand>
Date2011-02-06 01:30 +1300
SubjectRe: JLS 3/e -- Lots Of Errors
Message-ID<iijft9$rrc$2@lust.ihug.co.nz>
* Section 3.1, Page 14:

    For characters in the range U+0000 to U+FFFF, the values of [Unicode]
    code points and UTF-16 code units are the same.

No they are not. U+D800 .. U+DFFF are not valid Unicode code points.

[toc] | [next] | [standalone]


#25578

FromLew <noone@lewscanon.com>
Date2011-02-05 09:37 -0500
Message-ID<iijnbm$ccs$3@news.albasani.net>
In reply to#25519
On 02/05/2011 07:30 AM, Lawrence D'Oliveiro wrote:
> * Section 3.1, Page 14:
>
>      For characters in the range U+0000 to U+FFFF, the values of [Unicode]
>      code points and UTF-16 code units are the same.
>
> No they are not. U+D800 .. U+DFFF are not valid Unicode code points.

It says, "for characters in the range".  Those are not characters in the range.

-- 
Lew
Ceci n'est pas une fenĂȘtre.
.___________.
|###] | [###|
|##/  | *\##|
|#/ * |   \#|
|#----|----#|
||    |  * ||
|o *  |    o|
|_____|_____|
|===========|

[toc] | [prev] | [next] | [standalone]


#25924

FromJoshua Cranmer <Pidgeot18@verizon.invalid>
Date2011-02-05 10:53 -0500
Message-ID<iijrqi$kuv$1@news.eternal-september.org>
In reply to#25519
On 02/05/2011 07:30 AM, Lawrence D'Oliveiro wrote:
> * Section 3.1, Page 14:
>
>      For characters in the range U+0000 to U+FFFF, the values of [Unicode]
>      code points and UTF-16 code units are the same.
>
> No they are not. U+D800 .. U+DFFF are not valid Unicode code points.
>

"Surrogates are code points from two special ranges of Unicode values" 
[Quoted from <http://www.unicode.org/faq//utf_bom.html#utf16-2>, i.e., 
Unicode itself]

U+D800 to U+DFFF are indeed valid Unicode code points, according to 
Unicode itself. It just happens that they have no meaning except as a 
pair of values to represent non-BMP characters.

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web