Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1133 closed defect (duplicate)

Unicode error generating PDF

Reported by: Matt Good Owned by: Alec Thomas
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 15 years ago by Alec Thomas

Resolution: duplicate
Status: newclosed

Duplicate of #841.

comment:2 Changed 15 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?

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.