• Post Reply Bookmark Topic Watch Topic
  • New Topic

error: unclosed string literal and error: reached end of file while parsing  RSS feed

 
Lindsey Brooks
Ranch Hand
Posts: 58
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
     Whenever I try to use \u005C these errors in the title always come up.
I have no idea what's going on and how to get rid of them. How do I get rid of these errors?

Thanks,
Apple S



 
Carey Brown
Bartender
Posts: 3016
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Character 5C is the backslash character, so, you are writing the same thing as
"\"
The backslash is the String literal escape character so this says don't interpret the following character as a String terminator, use the literal quote character. This then leaves no closing quote for the string.
If you actually want a backslash to appear in your output you'd need to do this
"\\"
Edit: P.S. why are you using unicode characters when you could be using plain ASCII (which still works in unicode).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!