Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: illegal line end in character literal in escaped unicode CARRIAGERETURN / NEW LINE

Reply
Thread Tools

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

 
 
Mark Space
Guest
Posts: n/a
 
      05-15-2009
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: illegal line end in character literal in escaped unicode CARRIAGERETURN / NEW LINE Joshua Cranmer Java 0 05-15-2009 02:50 PM
Re: illegal line end in character literal in escaped unicode CARRIAGERETURN / NEW LINE Lew Java 0 05-15-2009 02:38 PM
Re: illegal line end in character literal in escaped unicode CARRIAGE RETURN / NEW LINE Andreas Leitgeb Java 0 05-15-2009 02:02 PM
xmlrpclib and carriagereturn (\r) Jonathan Ballet Python 5 03-18-2006 01:52 PM
Literal Escaped Octets Chason Hayes Python 11 02-08-2006 11:53 PM



Advertisments