diff options
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/strutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/strutils.py b/netlib/strutils.py index 809f5e17..59816dba 100644 --- a/netlib/strutils.py +++ b/netlib/strutils.py @@ -156,8 +156,8 @@ def hexdump(s): part = s[i:i + 16] x = " ".join("{:0=2x}".format(i) for i in six.iterbytes(part)) x = x.ljust(47) # 16*2 + 15 - part_repr = escape_control_characters( + part_repr = native(escape_control_characters( part.decode("ascii", "replace").replace(u"\ufffd", u"."), False - ) + )) yield (offset, x, part_repr) |