Opened 18 years ago
Closed 18 years ago
#1076 closed defect (fixed)
Input charset used for htmldoc should not be trac default
Reported by: | Tonin | Owned by: | Tonin |
---|---|---|---|
Priority: | high | Component: | PageToPdfPlugin |
Severity: | normal | Keywords: | charset |
Cc: | Trac Release: | 0.10 |
Description
As we know, htmldoc isn't utf-8 compatible. However, quite a lot of Trac site these days are using utf-8 as default_charset. This parameter is needed so that utf-8 encoded comments in subversion are rendered correctly under the source browser.
So using this same default_charset as encoding for input feeded to htmldoc is problematic. We'd better use the output charset for this purpose.
See attached patch as proposed solution. I also added a html meta tag containing this charset so that eventually newer version of htmldoc will correctly use it.
Attachments (1)
Change History (9)
Changed 18 years ago by
Attachment: | pagetopdf.py.diff added |
---|
comment:1 Changed 18 years ago by
Cc: | Tonin added; anonymous removed |
---|
comment:2 Changed 18 years ago by
Priority: | normal → high |
---|
comment:3 Changed 18 years ago by
Cc: | anonymous added; Tonin removed |
---|
Alec, if you gave me SVN write access on this directory, I'd be gald to help and commit my changes.
comment:5 Changed 18 years ago by
Status: | new → assigned |
---|
comment:6 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:7 Changed 18 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
There's still a problem in case the page from which we generate the PDF contains characters that cannot be represented in the desired output charset. For info, the supported HTMLDOC charsets currently are http://www.htmldoc.org/htmldoc.html#9_2_12
comment:8 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
I can confirm that this patch is working correctly and I think it should be added to the main tree.