"Peter Lind" <peterlind@hotmail.com> skrev i en meddelelse
news:acedts$11kk$1@news.cybercity.dk...
>
>
> F.eks:
> System.out.println("HEJ\u000AHEJ");
>
Se:
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html
afsnit 3.10.5:
[ Because Unicode escapes are processed very early, it is not correct to write
"\u000a" for a string literal containing a single linefeed (LF); the Unicode
escape \u000a is transformed into an actual linefeed in translation step 1
(§3.3) and the linefeed becomes a LineTerminator in step 2 (§3.4), and so the
string literal is not valid in step 3. Instead, one should write "\n" (§3.10.6).
Similarly, it is not correct to write "\u000d" for a string literal containing a
single carriage return (CR). Instead use "\r". ]
Mvh
Lars