akissa/baruwa — Issue #47: exception when adding filter containing danish chars
Author: syska
Created: 2012-02-06 20:19:09+00:00
State: open

When adding a filter:
subject equals "ø" ( danish char ) it blows up with the following exception:

The below exception was found when searching for spam equal to "Mor søges: Er du den afslappede type?"

UnicodeEncodeError at /reports/
'ascii' codec can't encode character u'\xf8' in position 0: ordinal not in range(128)
Request Method:	GET
Request URL:	https://xxx.xxx.dk/reports/
Django Version:	1.3.1
Exception Type:	UnicodeEncodeError
Exception Value:
'ascii' codec can't encode character u'\xf8' in position 0: ordinal not in range(128)
Exception Location:	/usr/local/lib/python2.7/site-packages/baruwa-1.1.1-py2.7.egg/baruwa/utils/queryfilters.py in gen_dynamic_query, line 112
Python Executable:	/usr/local/bin/python
Python Version:	2.7.2
Python Path:
['/usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/baruwa-1.1.1-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/South-0.7.3-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/lxml-2.3.3-py2.7-freebsd-8.2-RELEASE-p3-i386.egg',
'/usr/local/lib/python2.7/site-packages/IPy-0.75-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/anyjson-0.3.1-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/reportlab-2.5-py2.7-freebsd-8.2-RELEASE-p3-i386.egg',
'/usr/local/lib/python2.7/site-packages/django_celery-2.4.2-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/Django-1.3.1-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/celery-2.4.6-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/django_picklefield-0.1.9-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/python_dateutil-1.5-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/kombu-2.0.0-py2.7.egg',
'/usr/local/lib/python2.7/site-packages/amqplib-1.0.2-py2.7.egg',
'/usr/local/lib/python27.zip',
'/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-freebsd8',
'/usr/local/lib/python2.7/lib-tk',
'/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages']
Server time:	Mon, 6 Feb 2012 21:05:52 +0100