porimol / countryinfo

A python module for returning data about countries, ISO info and states/provinces within them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Encoding problem

hamza-hadda opened this issue · comments

'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>

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

Pypi
What is the difference?

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

I believe after version update it'll be resolve.

Thanks

I use the last version in PyPi 0.1.0

@hamza-hadda the latest version is 0.1.2