unicode errors on add orphaned jobs to queue
Posted: March 26th, 2013, 2:11 pm
got an nzb with unicode in it, i.e. "ü" or "ä"
try to add it back to active queue...
big thanks on any tip, workaround, or bugfix=)
ev
try to add it back to active queue...
Code: Select all
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 618, in respond
cherrypy.response.body = self.handler()
File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 2374, in add
orphan_add(kwargs)
File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 1075, in orphan_add
sabnzbd.nzbqueue.repair_job(path, None)
File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 43, in call_func
return func(*params, **kparams)
File "/usr/share/sabnzbdplus/sabnzbd/decorators.py", line 31, in newFunction
return f(*args, **kw)
File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 885, in repair_job
NzbQueue.do.repair_job(folder, new_nzb)
File "/usr/share/sabnzbdplus/sabnzbd/nzbqueue.py", line 164, in repair_job
logging.debug('Repair job %s without stored NZB', latin1(name))
File "/usr/share/sabnzbdplus/sabnzbd/encoding.py", line 177, in latin1
return txt.decode('utf-8').encode('latin-1', 'replace').replace('?', '_')
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 1: invalid start byte
Powered by CherryPy 3.2.0
ev