Skip to content

Commit ed9492a

Browse files
authored
output stream should also respect non-default charset
1 parent 7509018 commit ed9492a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/dampcake/bencode/Bencode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public byte[] encode(final Map<?, ?> m) {
200200

201201
private byte[] encode(final Object o, final Type type) {
202202
ByteArrayOutputStream out = new ByteArrayOutputStream();
203-
BencodeOutputStream bencode = new BencodeOutputStream(out);
203+
BencodeOutputStream bencode = new BencodeOutputStream(out, charset);
204204

205205
try {
206206
if (type == Type.STRING)

0 commit comments

Comments
 (0)