mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
changed String(byte[] bytes, String charsetName) to support only UTF-8
This commit is contained in:
parent
1f7f9319c3
commit
3001c2067c
@ -52,7 +52,7 @@ public final class String implements Comparable<String>, CharSequence {
|
||||
throws UnsupportedEncodingException
|
||||
{
|
||||
this(data);
|
||||
if (! charset.equals("US-ASCII")) {
|
||||
if (! charset.equals("UTF-8")) {
|
||||
throw new UnsupportedEncodingException(charset);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user