porimol / countryinfo

A python module for returning data about countries, ISO info and states/provinces within them.
MIT License
140 stars 44 forks source link

Encoding problem #20

Closed hamza-hadda closed 4 years ago

hamza-hadda commented 4 years ago

'm trying to use countryinfo with django 2.2 to get the countries informations : when I tried to get this :

country = 'Morocco' 
information = CountryInfo(country)

I get this error: 'charmap' codec can't decode byte 0x81 in position 49: character maps to <undefined>

porimol commented 4 years ago

@hamza-hadda How did you installed using PyPi or source code?

hamza-hadda commented 4 years ago

Pypi What is the difference?

porimol commented 4 years ago

@hamza-hadda would you please update the version of countryinfo package?

I believe after version update it'll be resolve.

Thanks

hamza-hadda commented 4 years ago

I use the last version in PyPi 0.1.0

porimol commented 4 years ago

@hamza-hadda the latest version is 0.1.2