There are two errors and two problems:
- UnicodeEncodeError: 'charmap' with 'Ö', 'Ç' etc.
- 'ascii' u '\ xd6' 0: (128)
type(tmpDict[0]['NAME']) == unicode, :
>>> u'\xd6'.decode('utf-8')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
...
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 0: ordinal not in range(128)
, , u'\xd6' Unicode, , Python ('ascii'). - .decode('utf-8') - Unicode ( Python 3, AttributeError , Unicode).
"UnicodeEncodeError:" charmap ", , Unicode Windows. print u'\xd6'. , win-unicode-console.