diff options
Diffstat (limited to 'python/architecture.py')
| -rw-r--r-- | python/architecture.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/architecture.py b/python/architecture.py index 95af9ddd..0b149057 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -3224,7 +3224,10 @@ class InstructionTextToken: token_type = InstructionTextTokenType(tokens[j].type) text = tokens[j].text if not isinstance(text, str): - text = text.decode("utf-8") + try: + text = text.decode("utf-8") + except UnicodeDecodeError: + text = text.decode("charmap") width = tokens[j].width value = tokens[j].value size = tokens[j].size |
