From 3001c2067c895c55e1ff4e5e7296ebb8e0478aff Mon Sep 17 00:00:00 2001 From: "J. Treadwell" Date: Wed, 12 Nov 2008 10:19:21 -0700 Subject: [PATCH] changed String(byte[] bytes, String charsetName) to support only UTF-8 --- classpath/java/lang/String.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }