--> -->

UnicodeDecodeError

'ascii' codec can't decode byte 0xe2 in position 168: 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. c:\Python25\lib\site-packages\MoinMoin\request.py in run (self=<MoinMoin.request.RequestCGI object at 0x006F6490>)

    1. 1170 self.page.send_page(self, msg=msg)
    2. 1171 else:
    3. 1172 handler(self.page.page_name, self)
    4. 1173
    5. 1174 # generate page footer (actions that do not want this footer use
    • handler = <function execute at 0x00A4A8B0>
    • self = <MoinMoin.request.RequestCGI object at 0x006F6490>
    • self.page = <MoinMoin.Page.Page instance at 0x008CAB48>
    • self.page.page_name = u'WikiAdministration'
  2. D:\Moin\fcwiki\data\plugin\action\CreatePdfDocument.py in execute (pagename=u'WikiAdministration', request=<MoinMoin.request.RequestCGI object at 0x006F6490>)

    1. 1688 def execute (pagename, request):
    2. 1689 try:
    3. 1690 CreatePdfDocument().run (pagename = pagename, request = request)
    4. 1691 except:
    5. 1692 raise
    • global CreatePdfDocument = <class wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument at 0x00A50540>
    • ).run = <unbound method CreatePdfDocument.run>
    • pagename = u'WikiAdministration'
    • request = <MoinMoin.request.RequestCGI object at 0x006F6490>
  3. D:\Moin\fcwiki\data\plugin\action\CreatePdfDocument.py in run (self=<wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument instance at 0x00A4B148>, pagename=u'WikiAdministration', request=<MoinMoin.request.RequestCGI object at 0x006F6490>)

    1. 1348 self.set_page_values()
    2. 1349 self.update_values(useform=False)
    3. 1350 return self.do_generate()
    4. 1351
    5. 1352 # Create a PDF document from form settings.
    • self = <wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument instance at 0x00A4B148>
    • self.do_generate = <bound method CreatePdfDocument.do_generate of <...cument.CreatePdfDocument instance at 0x00A4B148>>
  4. D:\Moin\fcwiki\data\plugin\action\CreatePdfDocument.py in do_generate (self=<wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument instance at 0x00A4B148>)

    1. 1413 html = self.get_html()
    2. 1414 if html:
    3. 1415 pdfdata = self.html2pdf(html)
    4. 1416 if pdfdata:
    5. 1417 # Send as application/pdf the generated file by HTMLDOC
    • pdfdata undefined
    • self = <wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument instance at 0x00A4B148>
    • self.html2pdf = <bound method CreatePdfDocument.html2pdf of <wik...cument.CreatePdfDocument instance at 0x00A4B148>>
    • html = u'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN...v id="pagebottom"></div>\n</div>\n</body>\n</html>\n\n'
  5. D:\Moin\fcwiki\data\plugin\action\CreatePdfDocument.py in html2pdf (self=<wikiconfig.plugin.action.CreatePdfDocument.CreatePdfDocument instance at 0x00A4B148>, html=u'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN...v id="pagebottom"></div>\n</div>\n</body>\n</html>\n\n')

    1. 1644 cmdstr = self.default_values['htmldoc_cmd'] + u' --help'
    2. 1645 (htmldoc_help, htmldoc_err) = pipeCommand(cmdstr)
    3. 1646 errmsg += u'<p>Execute &quote;<tt>%s</tt>&quote;:<br/><pre>%s</pre></p>' % (wikiutil.escape(cmdstr), wikiutil.escape(htmldoc_help),)
    4. 1647 if 'env' in self.request.__dict__:
    5. 1648 reqenv = u'%s' % wikiutil.escape(self.request.env)
    • errmsg = u'HTMLDOC command:<pre>htmldoc --cookies MOIN_ID=1...e --permission modify,copy,print,annotate -</pre>'
    • global wikiutil = <module 'MoinMoin.wikiutil' from 'C:\Python25\lib\site-packages\MoinMoin\wikiutil.pyc'>
    • wikiutil.escape = <function escape at 0x0078DEF0>
    • cmdstr = u'htmldoc --help'
    • htmldoc_help = 'Content-Type: application/pdf\r\nContent-Length: 2...595282a75da3a94d80479>]>>\nstartxref\n248790\n%%EOF\n'

UnicodeDecodeError

'ascii' codec can't decode byte 0xe2 in position 168: ordinal not in range(128)

  • args = ('ascii', 'Content-Type: application/pdf\r\nContent-Length: 2...da3a94d80479&gt;]&gt;&gt;\nstartxref\n248790\n%%EOF\n', 168, 169, 'ordinal not in range(128)')
  • encoding = 'ascii'
  • end = 169
  • message = ''
  • object = 'Content-Type: application/pdf\r\nContent-Length: 2...da3a94d80479&gt;]&gt;&gt;\nstartxref\n248790\n%%EOF\n'
  • reason = 'ordinal not in range(128)'
  • start = 168

System Details