<type 'exceptions.UnicodeDecodeError'> | Python 2.5: /usr/bin/python Sun Aug 14 20:29:38 2022 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/cgi-bin/ea.cgi in |
20 if __name__ == '__main__': |
21 |
22 bib = Bibliography() |
23 bib.page_type = 'Summary' |
24 bib.displayBiblio() |
bib = <biblio.Bibliography instance at 0x9b3ce6c>, bib.displayBiblio = <bound method Bibliography.displayBiblio of <biblio.Bibliography instance at 0x9b3ce6c>> |
/var/www/cgi-bin/biblio.py in displayBiblio(self=<biblio.Bibliography instance at 0x9b3ce6c>) |
197 #################################################### |
198 def displayBiblio(self): |
199 self.printHeaders() |
200 self.printAuthorData() |
201 self.loadAllAuthorTitles() |
self = <biblio.Bibliography instance at 0x9b3ce6c>, self.printHeaders = <bound method Bibliography.printHeaders of <biblio.Bibliography instance at 0x9b3ce6c>> |
/var/www/cgi-bin/biblio.py in printHeaders(self=<biblio.Bibliography instance at 0x9b3ce6c>) |
714 self.cgi_script = '%s.cgi' % self.page_types[self.page_type] |
715 |
716 author = SESSION.Parameter(0, 'unescape') |
717 |
718 # if the first parameter is an author ID |
author undefined, global SESSION = <isfdb.Session instance at 0x9a74b8c>, SESSION.Parameter = <bound method Session.Parameter of <isfdb.Session instance at 0x9a74b8c>> |
/var/www/cgi-bin/isfdb.py in Parameter(self=<isfdb.Session instance at 0x9a74b8c>, param_number=0, param_type='unescape', default_value=None, allowed_values=[]) |
235 value = string.replace(value, '\\', '') |
236 value = string.replace(value, '=', '') |
237 value = urllib.unquote(value).decode('utf-8').encode('iso-8859-1', 'xmlcharrefreplace') |
238 |
239 if allowed_values and value not in allowed_values: |
value = 'Philip Jos%E9 Farmer', global urllib = <module 'urllib' from '/usr/lib/python2.5/urllib.pyc'>, urllib.unquote = <function unquote at 0x9aa96f4>, ).decode = <built-in method decode of str object at 0x9c24020>, ).encode undefined |
/usr/lib/python2.5/encodings/utf_8.py in decode(input='Philip Jos\xe9 Farmer', errors='strict') |
14 |
15 def decode(input, errors='strict'): |
16 return codecs.utf_8_decode(input, errors, True) |
17 |
18 class IncrementalEncoder(codecs.IncrementalEncoder): |
global codecs = <module 'codecs' from '/usr/lib/python2.5/codecs.pyc'>, codecs.utf_8_decode = <built-in function utf_8_decode>, input = 'Philip Jos\xe9 Farmer', errors = 'strict', builtin True = True |
<type 'exceptions.UnicodeDecodeError'>: 'utf8' codec can't decode bytes in position 10-12: invalid data