Modify ↓
#841 closed defect (invalid)
Crash when trying to render certain characters
Reported by: | anonymous | Owned by: | Alec Thomas |
---|---|---|---|
Priority: | normal | Component: | PageToPdfPlugin |
Severity: | normal | Keywords: | |
Cc: | mankoff+pdfplugin@… | Trac Release: | 0.10 |
Description
It seems that '´', '`', and the microsoft smart quotes, crash my instance of the plugin.
I have the following defined in trac.ini:
[pagetopdf] size = A4 charset = iso-8859-15
The wiki has following text:
´
Python Traceback
Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/trac/web/main.py", line 313, in dispatch_request dispatcher.dispatch(req) File "/usr/lib64/python2.4/site-packages/trac/web/main.py", line 198, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib64/python2.4/site-packages/trac/wiki/web_ui.py", line 126, in process_request page.text, format, page.name) File "/usr/lib64/python2.4/site-packages/trac/mimeview/api.py", line 550, in send_converted content, selector) File "/usr/lib64/python2.4/site-packages/trac/mimeview/api.py", line 330, in convert_content output = converter.convert_content(req, mimetype, content, ck) File "build/bdist.linux-x86_64/egg/pagetopdf/pagetopdf.py", line 20, in convert_content File "/usr/lib64/python2.4/encodings/iso8859_15.py", line 18, in encode return codecs.charmap_encode(input,errors,encoding_map) UnicodeEncodeError: 'charmap' codec can't encode character u'\xb4' in position 4: character maps to <undefined>
The version of htmldoc is
htmldoc --version 1.8.24 Open Source
I am using the workflow branch from revision 3378.
Attachments (0)
Change History (4)
comment:1 Changed 18 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 follow-up: 3 Changed 18 years ago by
comment:3 Changed 18 years ago by
comment:4 Changed 18 years ago by
Cc: | mankoff+pdfplugin@… added; anonymous removed |
---|
OK I get it. But what is the solution? I've set my codepage to be something different than iso-8859-15 like so:
[pagetopdf] size = A4 charset = UTF-8
but still get the same error.
Is there an easier fix than editing all pages with those stupid smart-quotes that got pasted in from somewhere else?
Note: See
TracTickets for help on using
tickets.
According to this post, which may or may not be correct, the ACUTE ACCENT cannot be represented in ISO-8859-15 at all:
You will have to change your codepage to something else, or use an alternate character.