Skip to content

Instantly share code, notes, and snippets.

@ss23
Created April 7, 2012 12:03
Show Gist options
  • Save ss23/2328221 to your computer and use it in GitHub Desktop.
Save ss23/2328221 to your computer and use it in GitHub Desktop.
ss23@Crisp ~/comp203/assignment1 $ javac -encoding UTF8 UnicodeTest.java
ss23@Crisp ~/comp203/assignment1 $ cat UnicodeTest.java
class UnicodeTest {
public static void main(String args []) {
System.out.println(args[0]);
}
}
ss23@Crisp ~/comp203/assignment1 $ echo わ | xxd
0000000: e382 8f0a ....
ss23@Crisp ~/comp203/assignment1 $ java UnicodeTest わ
???
ss23@Crisp ~/comp203/assignment1 $ java UnicodeTest わ | xxd
0000000: 3f3f 3f0a ???.
ss23@Crisp ~/comp203/assignment1 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment