Skip to content

Commit c880d60

Browse files
author
Adam Peck
authored
Merge pull request #2 from alepar/master
output stream should probably also respect non-default charset
2 parents 7509018 + ed9492a commit c880d60

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)