Book Reviews - 4-star ReviewsChoose a category for a list of reviews. Notes | Books I Couldn't Finish | Random Review Latest | Fiction | Science | Biography / Memoir | History | Music | Miscellaneous | All |
|
|
<type 'exceptions.UnicodeEncodeError'> | Python 2.7.18: /usr/bin/python2 Thu Mar 28 08:50:22 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.
/home2/dogstick/public_html/cgi-bin/bookreviews/reviews.pycgi in <module>() |
695 anHTMLPage.createResultsList(aReviewList.records, sortColumn) |
696 anHTMLPage.insertGlobalFullTextLink() |
697 |
=> 698 anHTMLPage.output() |
699 c.close() |
anHTMLPage = <__main__.HTMLPage instance>, anHTMLPage.output = <bound method HTMLPage.output of <__main__.HTMLPage instance>> |
/home2/dogstick/public_html/cgi-bin/bookreviews/reviews.pycgi in output(self=<__main__.HTMLPage instance>) |
565 line = line.replace(r"%%includeUnfinished%%", str(self.includeUnfinished).lower()) |
566 |
=> 567 print line # Needs .encode("utf-8") adding in live version. Don't know why. |
568 file.close() |
569 |
line = u' <H2>\n <A href="...=return-to-top><A href=#>[Return to top]</A></P>\n' |
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\u201c' in position 272048: ordinal not in range(128)
args =
('ascii', u' <H2>\n <A href="...=return-to-top><A href=#>[Return to top]</A></P>\n', 272048, 272049, 'ordinal not in range(128)')
encoding =
'ascii'
end =
272049
message =
''
object =
u' <H2>\n <A href="...=return-to-top><A href=#>[Return to top]</A></P>\n'
reason =
'ordinal not in range(128)'
start =
272048