From: SourceForge.net <no...@so...> - 2010-02-18 16:24:10
|
Bugs item #2953821, was opened at 2010-02-17 17:56 Message generated for change (Settings changed) made by jroldroyd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=2953821&group_id=46652 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.9.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: J.R. Oldroyd (jroldroyd) Assigned to: Nobody/Anonymous (nobody) >Summary: UTF-8 problem when TV.xml contains 8-bit chars (patch) Initial Comment: I am now also seeing UTF-8 decode errors when using the web interface to search for programs to add and it happens that any of the matching programs contain TV.xml program data with 8-bit characters. I notice that the TV.xml file is encoded as ISO-8859-1. It seems, however, that www/web_types.py is expecting UTF-8 data: Traceback (most recent call last): File "/usr/local/lib/python2.5/site-packages/twisted/protocols/basic.py", line 231, in dataReceived why = self.lineReceived(line) File "/usr/local/lib/python2.5/site-packages/twisted/web/http.py", line 1325, in lineReceived self.allContentReceived() File "/usr/local/lib/python2.5/site-packages/twisted/web/http.py", line 1391, in allContentReceived req.requestReceived(command, path, version) File "/usr/local/lib/python2.5/site-packages/twisted/web/http.py", line 714, in requestReceived self.process() --- <exception caught here> --- File "/usr/local/lib/python2.5/site-packages/twisted/web/server.py", line 150, in process self.render(resrc) File "/usr/local/lib/python2.5/site-packages/twisted/web/server.py", line 157, in render body = resrc.render(self) File "/usr/local/lib/python2.5/site-packages/freevo/www/web_types.py", line 130, in render return self._render(request) File "/usr/local/share/freevo/htdocs/search.rpy", line 127, in _render fv.tableCell(cell, 'class="'+status+'" colspan="1"') File "/usr/local/lib/python2.5/site-packages/freevo/www/web_types.py", line 356, in tableCell self.res += " <td "+opts+">"+data+"</td>\n" exceptions.UnicodeDecodeError: 'utf8' codec can't decode bytes in position 85-90: unsupported Unicode code range ---------------------------------------------------------------------- Comment By: J.R. Oldroyd (jroldroyd) Date: 2010-02-18 11:01 Message: This problem is fixed using the attached patch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=446895&aid=2953821&group_id=46652 |