summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/src')
-rw-r--r--java/src/json/ext/StringDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/src/json/ext/StringDecoder.java b/java/src/json/ext/StringDecoder.java
index a4ee975..6023113 100644
--- a/java/src/json/ext/StringDecoder.java
+++ b/java/src/json/ext/StringDecoder.java
@@ -31,6 +31,7 @@ final class StringDecoder extends ByteListTranscoder {
ByteList decode(ByteList src, int start, int end) {
ByteList out = new ByteList(end - start);
+ out.setEncoding(src.getEncoding());
init(src, start, end, out);
while (hasNext()) {
handleChar(readUtf8Char());