Sep-14-2018, 09:15 AM
Hi!
Does anyone have any idea why countryinfo package returns the following charmap error message when calling an CountryInfo object?
Does anyone have any idea why countryinfo package returns the following charmap error message when calling an CountryInfo object?
from countryinfo import CountryInfo country = CountryInfo('France') country.region() File "...\AppData\Local\Programs\Python\Python37\lib\encodings\cp1257.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0xa1 in position 47: character maps to <undefined>