UnicodeDecodeError
'ascii' codec can't decode byte 0xe6 in position 309: ordinal not in range(128)
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/local/lib/python2.3/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object>)
- 1291 raise # fcgi uses this to terminate a thread
- 1292 except Exception, err:
- 1293 self.fail(err)
- 1294
- 1295 if self.cfg.log_timing:
- self = <MoinMoin.request.request_cgi.Request object>
- self.fail = <bound method Request.fail of <MoinMoin.request.request_cgi.Request object>>
- err = <exceptions.UnicodeDecodeError instance>
/usr/local/lib/python2.3/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'Xslt\u7248\u672c\u4fe1\u606f', request=<MoinMoin.request.request_cgi.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 239 count_hit=count_hit,
- 240 print_mode=print_mode,
- 241 content_only=content_only,
- 242 )
- 243
- content_only = 0
/usr/local/lib/python2.3/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, msg='', **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1179 format_args=pi['formatargs'],
- 1180 do_cache=do_cache,
- 1181 start_line=pi['lines'])
- 1182
- 1183 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': u'wiki', 'formatargs': u'', 'language': u'zh-tw', 'lines': 7}
/usr/local/lib/python2.3/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, body=u'{{{#!xslt\n<?xml version="1.0" encoding="utf-8"?>..."/> \u7248.\n </xsl:template>\n\n</xsl:stylesheet>\n}}}\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 7})
- 1276 except Exception, e:
- 1277 if not is_cache_exception(e):
- 1278 raise
- 1279 request.log('page cache failed after creation')
- 1280 self.format(parser)
/usr/local/lib/python2.3/site-packages/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)
- 1334 text = request.redirectedOutput(parser.format, formatter)
- 1335 finally:
- 1336 request.current_lang = saved_current_lang
- 1337
- 1338 src = formatter.assemble_code(text)
- request = <MoinMoin.request.request_cgi.Request object>
- request.current_lang = u'zh-tw'
- saved_current_lang = u'zh-tw'
/usr/local/lib/python2.3/site-packages/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_cgi.Request object>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>, *args=(<MoinMoin.formatter.text_python.Formatter instance>,), **kw={})
- 825 finally:
- 826 self.redirect()
- 827 text = buf.getvalue()
- 828 buf.close()
- 829 return text
- text undefined
- buf = <StringIO.StringIO instance>
- buf.getvalue = <bound method StringIO.getvalue of <StringIO.StringIO instance>>
/usr/lib/python2.3/StringIO.py in getvalue (self=<StringIO.StringIO instance>)
- 201 """
- 202 if self.buflist:
- 203 self.buf += ''.join(self.buflist)
- 204 self.buflist = []
- 205 return self.buf
- self = <StringIO.StringIO instance>
- self.buf = ''
- ''.join = <built-in method join of str object>
- self.buflist = ['<span class="anchor" id="line-8"></span>', u'<p class="line867">', '<span class="anchor" id="line-9"></span>', '<span class="anchor" id="line-10"></span>', '<span class="anchor" id="line-11"></span>', '<span class="anchor" id="line-12"></span>', '<span class="anchor" id="line-13"></span>', '<span class="anchor" id="line-14"></span>', '<span class="anchor" id="line-15"></span>', '<span class="anchor" id="line-16"></span>', '<span class="anchor" id="line-17"></span>', '<span class="anchor" id="line-18"></span>', '<span class="anchor" id="line-19"></span>', '<span class="anchor" id="line-20"></span>', '<span class="anchor" id="line-21"></span>', '<span class="anchor" id="line-22"></span>', '<span class="anchor" id="line-23"></span>', '<span class="anchor" id="line-24"></span>', '<span class="anchor" id="line-25"></span>', u'<div class="message">XSLT option disabled, pleas...lpOnConfiguration">HelpOnConfiguration</a>.</div>', ...]
UnicodeDecodeError
'ascii' codec can't decode byte 0xe6 in position 309: ordinal not in range(128)
- args = ('ascii', '<?xml version="1.0" encoding="utf-8"?>\n\n&l... </xsl:template>\n\n</xsl:stylesheet>', 309, 310, 'ordinal not in range(128)')
- encoding = 'ascii'
- end = 310
- object = '<?xml version="1.0" encoding="utf-8"?>\n\n&l... </xsl:template>\n\n</xsl:stylesheet>'
- reason = 'ordinal not in range(128)'
- start = 309
System Details
- Date: Tue, 22 May 2012 06:09:34 +0000
- Platform: Linux linuxstandardgroup.org.cn 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686
- Python: Python 2.3.4 (/usr/bin/python)
- MoinMoin: Release 1.6.3 (release)
