Skip to content

Commit

Permalink
do not raise error on invalid utf-8 encoding when decoding UA strings
Browse files Browse the repository at this point in the history
  • Loading branch information
oroulet committed Jul 19, 2021
1 parent 0a1741c commit 2710f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncua/ua/ua_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def unpack(data):
b = _Bytes.unpack(data)
if b is None:
return b
return b.decode('utf-8')
return b.decode('utf-8', errors="replace") # not need to be strict here, this is user data


class _Null:
Expand Down

0 comments on commit 2710f57

Please sign in to comment.