Skip to content

Commit 070e60e

Browse files
committed
restore UTF-8 encoding of string values
1 parent a261016 commit 070e60e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

nrepl/bencode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def _read_datum (s):
8181

8282
def _write_datum (x, out):
8383
if isinstance(x, string_types):
84-
# I don't see the need, all tests works fine.
85-
#x = x.encode("UTF-8")
84+
x = x.encode("UTF-8")
8685
out.write(str(len(x)))
8786
out.write(":")
8887
out.write(x)

0 commit comments

Comments
 (0)