Modify ↓
#980 closed defect (duplicate)
Charset Encoding and Problems
| Reported by: | dh1jc | Owned by: | Alec Thomas |
|---|---|---|---|
| Priority: | low | Component: | PageToPdfPlugin |
| Severity: | minor | Keywords: | charset encoding |
| Cc: | Trac Release: | 0.10 |
Description
Short notice on Charset encoding.
I changed from ISO Charset to UTF-8, because of some pages can't be rendered (converted) into ISO (see below).
Example Page: TrakTickets (or other Help Pages)
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
dispatcher.dispatch(req)
File "/var/lib/python-support/python2.4/trac/web/main.py", line 238, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-i686/egg/tractags/web_ui.py", line 64, in process_request
File "/var/lib/python-support/python2.4/trac/wiki/web_ui.py", line 134, in process_request
page.text, format, page.name)
File "/var/lib/python-support/python2.4/trac/mimeview/api.py", line 604, in send_converted
content, selector)
File "/var/lib/python-support/python2.4/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 "encodings/iso8859_15.py", line 18, in encode
UnicodeEncodeError: 'charmap' codec can't encode character u'\u201c' in position 8595: character maps to <undefined>
Attachments (0)
Note: See
TracTickets for help on using
tickets.



See this comment. You will have to remove the offending characters from the page.
Duplicate of #897.