diff --git a/classpath/java/lang/String.java b/classpath/java/lang/String.java index 89b33ad39e..e2295cdc89 100644 --- a/classpath/java/lang/String.java +++ b/classpath/java/lang/String.java @@ -52,7 +52,7 @@ public final class String implements Comparable, CharSequence { throws UnsupportedEncodingException { this(data); - if (! charset.equals("US-ASCII")) { + if (! charset.equals("UTF-8")) { throw new UnsupportedEncodingException(charset); } }