Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1133 closed defect (duplicate)

Unicode error generating PDF

Reported by: mgood Owned by: athomas
Priority: normal Component: PageToPdfPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


Description copied from t:#4575

On web-page

attempting to select the "PDF" button at the bottom, just below "Download in ohter formats:" geterates the following error:

Python Traceback

Traceback (most recent call last):
  File "/sw/lib/python2.4/site-packages/trac/web/", line 387, in dispatch_request
  File "/sw/lib/python2.4/site-packages/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/sw/lib/python2.4/site-packages/trac/wiki/", line 134, in process_request
    page.text, format,
  File "/sw/lib/python2.4/site-packages/trac/mimeview/", line 604, in send_converted
    content, selector)
  File "/sw/lib/python2.4/site-packages/trac/mimeview/", line 384, in convert_content
    output = converter.convert_content(req, mimetype, content, ck)
  File "build/bdist.darwin-8.8.0-Power_Macintosh/egg/pagetopdf/", line 20, in convert_content
  File "/sw/lib/python2.4/encodings/", line 18, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2019' in position 1764: character maps to <undefined>

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by athomas

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

Duplicate of #841.

comment:2 Changed 10 years ago by mankoff

The page that opened this ticket does not appear to be a dupe of #841, which discusses accents. Why is this a dupe? And what can I do to avoid this bug?

Add Comment

Modify Ticket

as closed The owner will remain athomas.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.