module country: UnicodeDecodeError with countries.py script
Using the script countries.py provided by country module, this error occurs:
python scripts/countries.py
<record model="country.country" id="af">
<field name="name">Afghanistan</field>
<field name="code">AF</field>
</record>
Traceback (most recent call last):
File "scripts/countries.py", line 13, in <module>
country.alpha2)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal
not in range(128)
pycountry use unicode since version 0.13 (2010-04-23).
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
issue2741.patch | @pilou_2 | 2012-08-21 09:07:00.200000 UTC | text/plain |