1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-13 00:42:44 +08:00

This change a little how we handle decoding of character string to fix a bug moslty got from Delta Controllers that are syaing to be encoding with UTF-8 but use latin-1 encoding for the descriptions of the properties. Enclosed the decoding inside a try except block to catch real problems and give a chance to the else that was there before to be triggered, now inside the except block... Note that in the first attempt to decode, we try with UTF-8, if it fails... try with latin-1 and if it fails again, reraise the exception.

This commit is contained in:
Christian Tremblay, ing 2019-02-03 13:02:31 -05:00
parent 6ce671262a
commit a6884a2f20

File diff suppressed because it is too large Load Diff