Better HN
topnewbestaskshowjobs
Log inSign up

cr0bar

3 karma · joined Jun 6, 2009 (17y ago) · 1 submissions

Submissions

comment 17y ago · link · parent

afaik, when not using literal non-ascii characters in java source code you're supposed to use native2ascii. Running it on my mac gives this:

  $ native2ascii Foo.java 
  public class Foo
  {
     public static void main(String[] args)
     {
         System.out.println("I have \u201a\u00c7\u00a8100 to my name.");
     }
  }
The resulting program from that works perfectly fine in my mac terminal, which makes the "I know Java pretty well" statement pretty suspicious...