Fix non-ASCII characters handing in IDA 6.x exporter

This commit is contained in:
Rafał Harabień 2021-02-21 17:08:11 +01:00
parent 45927bb9c3
commit 3593434f28

View file

@ -246,7 +246,7 @@ class XmlExporter:
elif ch == '\'' : return "'"
elif ch == '"' : return """
elif ch == '\x7F': return ''
elif ord(ch) > 0x7F: return '&#x' + format((ord(ch),"x")) + ";"
elif ord(ch) > 0x7F: return '&#x' + format(ord(ch),"x") + ";"
return ch