Defect #856
Export issue to PDF - broken character encoding
Status: | Closed | Start date: | 2008-03-14 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Issues | |||
Target version: | - | |||
Resolution: | Duplicate | Affected version: |
Description
When exporting ticket to PDF, some national characters are broken. Probably bad support for UTF-8 or maybe PDF convertor doesn't use appropriate font with full UTF-8 support.
Here is example:
aábcčdďeéěfghiíjklmnňoópqrsštťuúůvwxyýzž
AÁBCČDĎEÉĚFGHIÍJKLMNŇOÓPQRSŠTŤUÚŮVWXYÝZŽ
Related issues
History
#1
Updated by Maxim Krušina about 14 years ago
- File redmine-856.pdf added
And here is attached PDF with bad characters...
#2
Updated by Nikolay Solakov about 14 years ago
I think I found something about this problem:
the fonts in the generated pdf file are Helvetica, Helvetica-Bold and Helvetica-Oblique
I don't have these fonts and the Acrobat Reader uses some arial fonts, but it seems they don't support full utf-8.
So, the result is broken characters (in my case Bulgarian).
JP, if there is a way to change the font in the pdf when exporting it, please try it.
Regards,
Nikolay
#3
Updated by Maxim Krušina about 14 years ago
Problem is also in encoding, which is set to ANSI, but should be set to UTF-8. Also, it should be good idea to use OpenType fonts, because they are platform-independent (I'm not sure how it's with OpenType on Linux).
#4
Updated by Michael Baikov almost 14 years ago
There is a new version of rfpdf based on other pdf encoder - http://github.com/edwinmoss/rfpdf/tree/master
I got correct russian letters using it and FreeSans fonts in linux
#5
Updated by Thomas Lecavelier almost 14 years ago
There news about PDF generation.
- Michael Baikov successfully upgrade Redmine with the latest rfpdf, see this thread
- There's a new cool kid in the place: Prawn is a full ruby PDF generator. Easy usage, nice features (text + images and so on) and of course deal great with UTF-8 and fonts.
Could be interesting to compare rfpdf and Prawn...
#6
Updated by Gregory Brown almost 14 years ago
Prawn can definitely handle the PDF output here, at least what I see when I click the PDF button on the bottom right. If someone wants to build a Prawn based patch for Redmine, get in touch and I'll help with whatever you need.
#7
Updated by Michael Baikov almost 14 years ago
I will try to make a Prawn based patch.
#8
Updated by Michael Baikov almost 14 years ago
I checked several things. Prawn can be used there, but lacks certain features: bold/italic fonts are most important to make reports identical to those, which created with rfpdf right now. I will add Prawn support to redmine, but i do not want to fix prawn as well :)
#9
Updated by Jean-Philippe Lang over 13 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Dup of #61.
#10
Updated by Nikolay Kotlyarov over 12 years ago
+1 for this issue. Export PDF is broken for Russian language.
Way to reproduce:
Select "My account" on the top of this page and change language to Russian or Bulgarian.
Then just export any issue from this site to PDF.