Opened 7 years ago

Last modified 5 years ago

#5883 new defect

UTF-8 wiki pages don't work

Reported by: anonymous Owned by: Diorgenes Felipe Grzesiuk
Priority: high Component: TracWikiToPdfPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11


I have wiki pages in UTF-8. And I can't convert them to PDF. I get ???? instead of letter.

This is what I found, but how could this be applied to TracWikiToPdfPlugin?

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by anonymous

Actually, if I configure Trac like this:

default_charset = utf-8

I get letters, but not correct. Not real text.

comment:2 Changed 7 years ago by izzy

Looks like you are right with your assumption. I just remember from another project, for Postscript (closely related to PDF) there was only Latin-1 available as input, no UTF-8 (thought it was not connected with HTMLDoc). So the problem probably is, non-Latin1 content would have to be converted to Latin-1 first - which of course only works as long as used characters are compatible.

comment:3 Changed 7 years ago by Calle Kabo

htmldoc 1.8 doesn't support UTF-8. Download and install htmldoc 1.9 from and it works like a charm :)

comment:4 Changed 6 years ago by anonymous

Htmldoc 1.9 didn't work for me. Still oin 1.8. Here is dirty but solution (works for me). Implement an extra default_charset parameter in wikitopdf section

default_charset = utf-8

default_charset = windows-1251

Patch string tracwikitopdfplugin/0.11/wikitopdf/

codepage = self.env.config.get('trac', 'default_charset', 'iso-8859-1')


codepage = self.env.config.get('wikitopdf', 'default_charset', 'iso-8859-1')

or do it with extra "if"

Use Serif bodyfont (for Cyryllic output) and set charset = cp-1251

comment:5 Changed 5 years ago by Ryan J Ollos

#7081 closed as a duplicate.

Modify Ticket

as new The owner will remain Diorgenes Felipe Grzesiuk.

Add Comment

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

Note: See TracTickets for help on using tickets.