Permalink
Browse files

Propagate src encoding to values made from it (fixes 1.9 mode convert…

…ing everything to ascii-8bit; harmless for 1.8 mode too)
  • Loading branch information...
1 parent 29e88be commit c93d679936aa5658c700b5c84367211e84b16238 @enebo enebo committed with Feb 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 java/src/json/ext/StringDecoder.java
@@ -31,6 +31,7 @@
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());

0 comments on commit c93d679

Please sign in to comment.