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

Discussion in 'Java' started by Andreas Leitgeb, May 15, 2009.

  1. Christian <> wrote:
    > switch (original)
    > {
    > case '\u000D' : return '\u0020';
    > case '\u000A' : return '\u0020';
    > }


    Use \r instead of \u000D and \n for \u000A.

    For background and reasons, google for "u000a" (or "u000d")
     
    Andreas Leitgeb, 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. Dave Tichenor
    Replies:
    3
    Views:
    32,186
    Steven Cheng[MSFT]
    Feb 17, 2004
  2. Mark Space
    Replies:
    0
    Views:
    493
    Mark Space
    May 15, 2009
  3. Lew
    Replies:
    0
    Views:
    958
  4. Joshua Cranmer
    Replies:
    0
    Views:
    474
    Joshua Cranmer
    May 15, 2009
  5. Steve Anderson
    Replies:
    3
    Views:
    266
    Steve Anderson
    Jun 21, 2004
Loading...

Share This Page