注意:复制并详细说明此问题和答案来自:https ://groups.google.com/forum/?fromgroups=#!topic/django-users/OW_uSWCoObs :
嗨,我试图通过 GeoDjango 教程,当我尝试使用 LayerMapping 导入数据时,我收到以下错误:
Warning: Incorrect string value: '\xC2\x85land...' for column 'name' at row 1
我正在使用 MySQL,我的字符集和排序规则设置为 latin1(我也尝试过 utf8)。