allow utf-8 encoded characters (#581)

This commit is contained in:
Jason Young 2022-04-05 17:06:23 -05:00 committed by GitHub
parent cc45cc1bc0
commit 87ff863432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ DBCSignal = namedtuple("DBCSignal", ["name", "start_bit", "msb", "lsb", "size",
class dbc():
def __init__(self, fn):
self.name, _ = os.path.splitext(os.path.basename(fn))
with open(fn, encoding="ascii") as f:
with open(fn, encoding="utf-8") as f:
self.txt = f.readlines()
self._warned_addresses = set()