We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7509018 + ed9492a commit c880d60Copy full SHA for c880d60
src/main/java/com/dampcake/bencode/Bencode.java
@@ -200,7 +200,7 @@ public byte[] encode(final Map<?, ?> m) {
200
201
private byte[] encode(final Object o, final Type type) {
202
ByteArrayOutputStream out = new ByteArrayOutputStream();
203
- BencodeOutputStream bencode = new BencodeOutputStream(out);
+ BencodeOutputStream bencode = new BencodeOutputStream(out, charset);
204
205
try {
206
if (type == Type.STRING)
0 commit comments