--> -->

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.

  1. /usr/local/lib/python2.3/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object>)

    1. 1291 raise # fcgi uses this to terminate a thread
    2. 1292 except Exception, err:
    3. 1293 self.fail(err)
    4. 1294
    5. 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>
  2. /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)

    1. 239 count_hit=count_hit,
    2. 240 print_mode=print_mode,
    3. 241 content_only=content_only,
    4. 242 )
    5. 243
    • content_only = 0
  3. /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})

    1. 1179 format_args=pi['formatargs'],
    2. 1180 do_cache=do_cache,
    3. 1181 start_line=pi['lines'])
    4. 1182
    5. 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}
  4. /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})

    1. 1276 except Exception, e:
    2. 1277 if not is_cache_exception(e):
    3. 1278 raise
    4. 1279 request.log('page cache failed after creation')
    5. 1280 self.format(parser)
  5. /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>)

    1. 1334 text = request.redirectedOutput(parser.format, formatter)
    2. 1335 finally:
    3. 1336 request.current_lang = saved_current_lang
    4. 1337
    5. 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'
  6. /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={})

    1. 825 finally:
    2. 826 self.redirect()
    3. 827 text = buf.getvalue()
    4. 828 buf.close()
    5. 829 return text
    • text undefined
    • buf = <StringIO.StringIO instance>
    • buf.getvalue = <bound method StringIO.getvalue of <StringIO.StringIO instance>>
  7. /usr/lib/python2.3/StringIO.py in getvalue (self=<StringIO.StringIO instance>)

    1. 201 """
    2. 202 if self.buflist:
    3. 203 self.buf += ''.join(self.buflist)
    4. 204 self.buflist = []
    5. 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', '&lt;?xml version="1.0" encoding="utf-8"?&gt;\n\n&l... &lt;/xsl:template&gt;\n\n&lt;/xsl:stylesheet&gt;', 309, 310, 'ordinal not in range(128)')
  • encoding = 'ascii'
  • end = 310
  • object = '&lt;?xml version="1.0" encoding="utf-8"?&gt;\n\n&l... &lt;/xsl:template&gt;\n\n&lt;/xsl:stylesheet&gt;'
  • 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)