Re: illegal line end in character literal in escaped unicode CARRIAGERETURN / NEW LINE

Discussion in 'Java' started by Mark Space, May 15, 2009.

  1. Mark Space

    Mark Space Guest

    Christian wrote:

    > case '\u000D' : return '\u0020';
    > case '\u000A' : return '\u0020';


    > Could anybody give me a hint?


    What Andreas said. The compiler actual pre-processes \uxxxx and feeds
    the resulting character to the rest of the compiler. So your compiler
    is actually seeing a carriage return and a new line there, just as if
    you had pressed Enter. Which is illegal.
     
    Mark Space, May 15, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chason Hayes

    Literal Escaped Octets

    Chason Hayes, Feb 6, 2006, in forum: Python
    Replies:
    11
    Views:
    688
    Chason Hayes
    Feb 8, 2006
  2. Jonathan Ballet

    xmlrpclib and carriagereturn (\r)

    Jonathan Ballet, Mar 17, 2006, in forum: Python
    Replies:
    5
    Views:
    371
    Jonathan Ballet
    Mar 18, 2006
  3. Andreas Leitgeb
    Replies:
    0
    Views:
    468
    Andreas Leitgeb
    May 15, 2009
  4. Lew
    Replies:
    0
    Views:
    967
  5. Joshua Cranmer
    Replies:
    0
    Views:
    482
    Joshua Cranmer
    May 15, 2009
Loading...

Share This Page