Created
April 7, 2012 11:52
-
-
Save ss23/2328098 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ss23@Crisp ~/comp203/assignment1 $ javac *.java | |
UnicodeTest.java:3: warning: unmappable character for encoding ASCII | |
String test = new String("???", "UTF8"); | |
^ | |
UnicodeTest.java:3: warning: unmappable character for encoding ASCII | |
String test = new String("???", "UTF8"); | |
^ | |
UnicodeTest.java:3: warning: unmappable character for encoding ASCII | |
String test = new String("???", "UTF8"); | |
^ | |
UnicodeTest.java:3: cannot find symbol | |
symbol : constructor String(java.lang.String,java.lang.String) | |
location: class java.lang.String | |
String test = new String("???", "UTF8"); | |
^ | |
1 error | |
3 warnings | |
ss23@Crisp ~/comp203/assignment1 $ cat UnicodeTest.java | |
class UnicodeTest { | |
public static void main(String args []) { | |
String test = new String("わ", "UTF8"); | |
System.out.println(test); | |
System.out.println(args[0]); | |
} | |
} | |
ss23@Crisp ~/comp203/assignment1 $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment