Skip to content

Instantly share code, notes, and snippets.

@ss23
Created April 7, 2012 11:52
Show Gist options
  • Save ss23/2328098 to your computer and use it in GitHub Desktop.
Save ss23/2328098 to your computer and use it in GitHub Desktop.
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