次のエラーの理由は何ですか? でフィルタリングしようとすると:
if MyObject.objects.filter(location = aDictionary['address']):
ここで、場所は次のように定義されます。
location = models.CharField(max_length=100, blank=True, default='')
aDictionary['address'] に英数字以外の文字 (Kīhei など) を含む文字列が含まれていると、次のエラーが発生します。
File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaul
terrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1267, "Illegal mix of collations (latin1_sw
edish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='")