Note: Copying and elaborating upon this question and answer from: https://groups.google.com/forum/?fromgroups=#!topic/django-users/OW_uSWCoObs:
Hi, I was trying to go through the GeoDjango tutorial and when I try to import data with LayerMapping I’m getting the following error:
Warning: Incorrect string value: '\xC2\x85land...' for column 'name' at row 1
I’m using MySQL and my charset and collation are set to latin1 (I also tried utf8).
Inserting
iso-8859-1(latin1) characters into autf8column causes MySQL to throw that error.This can be solved by changing the encoding in the line in the tutorial for world/load.py from this:
To the following …
For more, see MySQL "incorrect string value" error when save unicode string in Django
Generally, see http://bugs.mysql.com/bug.php?id=30131 for more detail, particularly if you are a Windows user (don’t be mislead by the URL—this is not a bug).