jkbrzt/podcats

UnicodeDecodeError for episodes with non-ASCII titles

Closed this issue · 0 comments

I get the following error when trying to generate a podcast from an mp3 with the title "SM000001. Zweig, Stefan; Verden af i går". It seems like the 'å' is a problem.

Traceback (most recent call last):
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/flask/app.py", line 1997, in __call__
    return self.wsgi_app(environ, start_response)
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/flask/app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/flask/app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/podcats.py", line 177, in 
    channel.as_xml(),
  File "/home/tuk/.virtualenvs/podcats-original-pip/lib/python2.7/site-packages/podcats.py", line 164, in as_xml
    items=u''.join(episode.as_xml() for episode in sorted(self))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 65: ordinal not in range(128)

The is version 0.5.0.