Hi there! I'm getting this whenever I try to use some non-ascii character in a CharField. I know this has something to do with the unicode() function, but my python knowledge doesn't get me that far.
Thanks everyone! Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/decorators.py" in _checklogin 55. return view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 39. response = view_func(request, *args, **kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/main.py" in add_stage 263. LogEntry.objects.log_action(request.user.id, ContentType.objects.get_for_model(model).id, pk_value, force_unicode(new_object), ADDITION) File "/usr/lib/python2.5/site-packages/django/utils/encoding.py" in force_unicode 40. s = unicode(str(s), encoding, errors) UnicodeEncodeError at /admin/anuncios/entry/add/ 'ascii' codec can't encode character u'\xc1' in position 0: ordinal not in range(128)
signature.asc
Description: OpenPGP digital signature