I'm using contrib.syndication for making feeds for Flickr photos and Ma.gnolia links that both have tags which have funky characters (tags like 'pärnu' and 'työ'). Django dies with UnicodeDecodeError? when trying to make a feed that has url with funky characters.
The error message is:
UnicodeDecodeError at /syndicate/tag/pärnu/
'ascii' codec can't decode byte 0xc3 in position 24: ordinal not in range(128)
...
Exception Location: /usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/contrib/syndication/feeds.py in add_domain, line 9
add_domain function is very simple, and the problem seems to be with line that is:
url = u'http://%s%s' % (domain, url)
I tested this and found that when decoding the url with latin1 (iso-8859-1) like:
url = u'http://%s%s' % (domain, url.decode('latin1'))
but I'm not very confident of this being a good fix for this.