Skip to content

Commit

Permalink
binvdf: decode cstrings are utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Nov 17, 2018
1 parent ef28616 commit 27b95b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vdf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Module for deserializing/serializing to and from VDF
"""
__version__ = "2.3"
__version__ = "2.4"
__author__ = "Rossen Georgiev"

import re
Expand Down Expand Up @@ -258,7 +258,7 @@ def read_string(s, idx, wide=False):
if wide:
result = result.decode('utf-16')
elif bytes is not str:
result = result.decode('ascii')
result = result.decode('utf-8')
return result, end + (2 if wide else 1)

stack = [mapper()]
Expand Down

0 comments on commit 27b95b9

Please sign in to comment.