• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unicode Characters  RSS feed

 
Salim Mohamed
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public class Test002 extends Super
{
public static void main(String args[])
{
char c1 = '\u00AA';
char c2 = '\u00DD';
char c3 = '\u000D';
char c4 = '\u000A';
}
}
If anybody could tell me what are the common unicode characters especially those that cause compile errors, it would be of great help.
Thanks.
 
anushree ari
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
\b==>'\u0008';
\t==>'\u0009';
\n==>'\u000a';
\r==>'\u000d';
\f==>'\u000c';
this could cause the compiler error,
anybody correct me,
thx
 
Ben Ritchie
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
\u000a and \u000d will cause a compiler error. Take a look at the certification FAQ.
http://www.javaranch.com/certfaq.jsp#q14
 
anushree ari
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i wrote the same thing.
 
Ben Ritchie
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...but only after I started writing a reply...
 
Salim Mohamed
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys ...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!