<type 'exceptions.UnicodeDecodeError'> | Python 2.5: /usr/bin/python Mon May 23 20:50:49 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/ae.cgi in |
20 if __name__ == '__main__': |
21 |
22 bib = Bibliography() |
23 bib.page_type = 'Alphabetical' |
24 bib.displayBiblio() |
bib = <biblio.Bibliography instance at 0xb6e1294c>, bib.displayBiblio = <bound method Bibliography.displayBiblio of <biblio.Bibliography instance at 0xb6e1294c>> |
/var/www/cgi-bin/biblio.py in displayBiblio(self=<biblio.Bibliography instance at 0xb6e1294c>) |
197 #################################################### |
198 def displayBiblio(self): |
199 self.printHeaders() |
200 self.printAuthorData() |
201 self.loadAllAuthorTitles() |
self = <biblio.Bibliography instance at 0xb6e1294c>, self.printHeaders = <bound method Bibliography.printHeaders of <biblio.Bibliography instance at 0xb6e1294c>> |
/var/www/cgi-bin/biblio.py in printHeaders(self=<biblio.Bibliography instance at 0xb6e1294c>) |
715 self.cgi_script = '%s.cgi' % self.page_types[self.page_type] |
716 |
717 author = SESSION.Parameter(0, 'unescape') |
718 |
719 # if the first parameter is an author ID |
author undefined, global SESSION = <isfdb.Session instance at 0xb73c98ec>, SESSION.Parameter = <bound method Session.Parameter of <isfdb.Session instance at 0xb73c98ec>> |
/var/www/cgi-bin/isfdb.py in Parameter(self=<isfdb.Session instance at 0xb73c98ec>, param_number=0, param_type='unescape', default_value=None, allowed_values=[]) |
140 value = string.replace(value, '\\', '') |
141 value = string.replace(value, '=', '') |
142 value = urllib.unquote(value).decode('utf-8').encode('iso-8859-1', 'xmlcharrefreplace') |
143 |
144 if allowed_values and value not in allowed_values: |
value = 'Andr%E9 Guirard', global urllib = <module 'urllib' from '/usr/lib/python2.5/urllib.pyc'>, urllib.unquote = <function unquote at 0xb6f0d64c>, ).decode = <built-in method decode of str object at 0xb6e0fb88>, ).encode undefined |
/usr/lib/python2.5/encodings/utf_8.py in decode(input='Andr\xe9 Guirard', 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 = 'Andr\xe9 Guirard', errors = 'strict', builtin True = True |
<type 'exceptions.UnicodeDecodeError'>: 'utf8' codec can't decode bytes in position 4-6: invalid data