Modify

Opened 8 years ago

Closed 8 years ago

#1242 closed defect (duplicate)

UnicodeEncodeError

Reported by: jameslabocki@… Owned by: athomas
Priority: normal Component: PageToPdfPlugin
Severity: normal Keywords: PageToPdf UnicodeEncodeError
Cc: jameslabocki@… Trac Release: 0.10

Description

I encounter this error while encoding a wiki page to pdf and am curious if there is something I can do to fix it. Most other pages work fine? Thanks


Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 238, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/wiki/web_ui.py", line 134, in process_request
    page.text, format, page.name)
  File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line 604, in send_converted
    content, selector)
  File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line 384, in convert_content
    output = converter.convert_content(req, mimetype, content, ck)
  File "build/bdist.linux-i686/egg/pagetopdf/pagetopdf.py", line 20, in convert_content
  File "/usr/lib/python2.3/encodings/iso8859_15.py", line 18, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2013' in position 1779: character maps to <undefined>

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by athomas

  • Resolution set to duplicate
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.