etianen/django-reversion — Issue #111: UnicodeDecodeError: 'ascii' codec can't decode byte
Author: joelhaasnoot
Created: 2011-12-01 21:34:53+00:00
State: open

Getting this crash when trying to save some UTF-8 data

Traceback (most recent call last):
File "", line 1, in
File "/stops/load_cxx.py", line 32, in run
StopAttribute(stop=s, key=k, value=bla).save()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 460, in save
self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 570, in save_base
created=(not record_exists), raw=raw, using=using)
File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/user/envs/haltes/src/django-reversion/src/reversion/revisions.py", line 566, in _post_save_receiver
version_data = adapter.get_version_data(instance, VERSION_ADD)
File "/home/user/envs/haltes/src/django-reversion/src/reversion/revisions.py", line 107, in get_version_data
"object_repr": unicode(obj),
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal not in range(128)