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

ISO-8859 CSV 'known craft' Files are not supported #1

Open
ampledata opened this issue Jun 17, 2021 · 0 comments
Open

ISO-8859 CSV 'known craft' Files are not supported #1

ampledata opened this issue Jun 17, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@ampledata
Copy link
Collaborator

[admin@takserver ~]$ file *.csv
Airports.csv:    ASCII text, with CRLF line terminators
known_craft.csv: ISO-8859 text, with CRLF line terminators
known_mil.csv:   UTF-8 Unicode (with BOM) text, with CRLF line terminators
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/adsbxcot/classes.py", line 165, in run
    self.known_craft_db = aircot.read_known_craft(self.known_craft)
  File "/usr/local/lib/python3.6/site-packages/aircot/functions.py", line 297, in read_known_craft
    for row in reader:
  File "/usr/lib64/python3.6/csv.py", line 112, in __next__
    row = next(self.reader)
  File "/usr/lib64/python3.6/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 1816: invalid start byte
@ampledata ampledata added the documentation Improvements or additions to documentation label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant