Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oletools/olevba3.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ def vba_chr_tostr(t):
if i>=0 and i<=255:
return VbaExpressionString(chr(i))
else:
return VbaExpressionString(unichr(i).encode('utf-8', 'backslashreplace'))
return VbaExpressionString(chr(i).encode('utf-8', 'backslashreplace'))
except ValueError:
log.exception('ERROR: incorrect parameter value for chr(): %r' % i)
return VbaExpressionString('Chr(%r)' % i)
Expand Down