diff options
| author | Jordan Wiens <github@psifertex.com> | 2025-11-02 16:46:14 -0500 |
|---|---|---|
| committer | Jordan Wiens <github@psifertex.com> | 2025-11-02 16:46:56 -0500 |
| commit | 9f246647383e4b237d79dd5a4488978e9cd11909 (patch) | |
| tree | c374db1ca67d85f728be0275aa035de1d331ea34 /python | |
| parent | 03eb68d68be7f9b5162632b94b4a904ed0ee4ed6 (diff) | |
additional error handling for utf8 decoding
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 80723c6c..f47fbf4a 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -504,7 +504,7 @@ class StringReference: @property def value(self) -> str: - return self._view.read(self._start, self._length).decode(self._decodings[self._type]) + return self._view.read(self._start, self._length).decode(self._decodings[self._type], errors='replace') @property def raw(self) -> bytes: |
