Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

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

 
 
Andreas Leitgeb
Guest
Posts: n/a
 
      05-15-2009
Christian <(E-Mail Removed)> 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")

 
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 CARRIAGERETURN / NEW LINE Mark Space Java 0 05-15-2009 02:35 PM
Help: Delete a single carriage return in a file, but not a double carriage return? Steve Anderson Perl Misc 3 06-21-2004 12:48 AM
How to create carriage return or line feed or new line Dave Tichenor ASP .Net 3 02-17-2004 01:55 AM



Advertisments