Hello, this is my first post here ... I'm following the
geodjango tutorial and during the LayerMapping section, while running "load.run()" something internally is crashing on non-ascii characters within the dataset. I tried changing the encoding to "UTF-8" but same error. Here is the output:
Saved: Monaco
Saved: Palestine
Saved: Montenegro
Saved: Mayotte
Failed to save the feature (id: 141) into the model with the keyword arguments:
{'iso2': u'AX', 'pop2005': 0, 'area': 0, 'region': 150, 'lon': 19.952, 'iso3': u'ALA', 'subregion': 154, 'fips': u'', 'lat': 60.198, 'un': 248, 'mpoly': u'MULTIPOLYGON (((20.210831 59.979996000000142,20.203327 59.976944,20.137215 59.991661,20.129162 59.994995,20.004166000000112 60.
....
00108 60.317497,19.862221 60.312492,19.838942 60.319824,19.834274 60.322159,19.779999 60.349159,19.782776 60.354439,19.808331 60.377495000000124,19.824997 60.39222,19.85722 60.403610000000128,19.868610000000103 60.403610000000128,19.90583 60.399994,20.084721 60.350273)))', 'name': u'\xc3\x85land Islands'}
'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
>>>
I searched for this error but don't find anything specifically regarding geodjango. Can anyone help me get past this step? Thank you!
Carlos