Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError #4

Open
Turbo-Tuning opened this issue Sep 5, 2021 · 1 comment
Open

UnicodeDecodeError #4

Turbo-Tuning opened this issue Sep 5, 2021 · 1 comment

Comments

@Turbo-Tuning
Copy link

I get a similar error message with all a2l files I have tested. What am I doing wrong?

$ python3 a2l2xdf.py sa.a2l a2l2xdf.csv
Traceback (most recent call last):
  File "a2l2xdf.py", line 15, in <module>
    db.open_existing(argv[1]) if path.exists(f"{argv[1]}db") else db.import_a2l(argv[1])
  File "/home/chris/.local/lib/python3.7/site-packages/pya2l/__init__.py", line 115, in import_a2l
    prepro_result = prepro.process(self._a2lfn, encoding = detect_encoding(self._a2lfn))
  File "/home/chris/.local/lib/python3.7/site-packages/pya2l/preprocessor.py", line 160, in process
    data = self._process_file(file_name, join_lines = True, encoding = encoding)
  File "/home/chris/.local/lib/python3.7/site-packages/pya2l/preprocessor.py", line 173, in _process_file
    for num, line in enumerate(f_obj, 1):
  File "/usr/lib/python3.7/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 7497: ordinal not in range(128)
@bri3d
Copy link
Owner

bri3d commented Sep 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants