<type 'exceptions.UnicodeEncodeError'> | Python 2.5.2: /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python Sat Aug 17 18:42:57 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/Library/WebServer/Documents/etc/search.py in |
253 |
254 if __name__ == '__main__': |
255 html = main(q, author, page) |
256 # Uncomment the next line in order to generate a cached version of the search |
257 generate_cache_file(q, author, page, html) |
html undefined, main = <function main at 0x1515a70>, q = u'Vf\xef\xefEsb.', author = u'', page = 1 |
/Library/WebServer/Documents/etc/search.py in main(q=u'Vf\xef\xefEsb.', author=u'', page=1) |
104 print "Content-Type: text/html" |
105 print |
106 print html.encode('utf-8') % parameters |
107 exit(0) |
108 |
html = u'<!DOCTYPE html>\n<html lang="nl">\n<head>\n\t<meta h...i></p>\n \t<br />\n </div>\n\n</div>\n</body>\n</html>', html.encode = <built-in method encode of unicode object at 0x12a5b78>, parameters = {u'script': u'', u'searchresults': u'', u'summary': u'<div class="grid_12">\nGeen documenten gevonden!\n</div>', u'title': u"'Vf\xef\xefEsb.'"} |
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode characters in position 122-123: ordinal not in range(128)
args =
('ascii', u'<!DOCTYPE html>\n<html lang="nl">\n<head>\n\t<meta h...i></p>\n \t<br />\n </div>\n\n</div>\n</body>\n</html>', 122, 124, 'ordinal not in range(128)')
encoding =
'ascii'
end =
124
message =
''
object =
u'<!DOCTYPE html>\n<html lang="nl">\n<head>\n\t<meta h...i></p>\n \t<br />\n </div>\n\n</div>\n</body>\n</html>'
reason =
'ordinal not in range(128)'
start =
122