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: 'ascii' codec can't decode byte 0xc3 in position 1689: ordinal not in range(128) #9

Open
Paperone80 opened this issue Sep 24, 2018 · 1 comment

Comments

@Paperone80
Copy link

Hi,

I am getting the following error for :
UnicodeDecodeError Traceback (most recent call last)
in ()
----> 1 from whenareyou import whenareyou
2 tz = whenareyou('Hamburg')
3 tz.localize(datetime(2002, 10, 27, 6, 0, 0))

/opt/intel/intelpython35/lib/python3.5/site-packages/whenareyou/init.py in ()
23 'lng', 'alt', 'tz', 'dst', 'tz_olson'],
24 restkey='info')
---> 25 for row in airports_reader:
26 airports_dict[row['iata']] = row
27

/opt/intel/intelpython35/lib/python3.5/csv.py in next(self)
108 # Used only for its side effect.
109 self.fieldnames
--> 110 row = next(self.reader)
111 self.line_num = self.reader.line_num
112

/opt/intel/intelpython35/lib/python3.5/encodings/ascii.py in decode(self, input, final)
24 class IncrementalDecoder(codecs.IncrementalDecoder):
25 def decode(self, input, final=False):
---> 26 return codecs.ascii_decode(input, self.errors)[0]
27
28 class StreamWriter(Codec,codecs.StreamWriter):

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1689: ordinal not in range(128)

@sils
Copy link
Contributor

sils commented Jun 19, 2020

@Paperone80 there was a pull request related to this which I just merged, consider trying the latest version from git.

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