Defect #856
closedExport issue to PDF - broken character encoding
0%
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Ž
Files
Related issues
Updated by Maxim Krušina almost 17 years ago
- File redmine-856.pdf redmine-856.pdf added
And here is attached PDF with bad characters...
Updated by Nikolay Solakov over 16 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
Updated by Maxim Krušina over 16 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).
Updated by Michael Baikov over 16 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
Updated by Thomas Lecavelier over 16 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...
Updated by Gregory Brown over 16 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.
Updated by Michael Baikov over 16 years ago
I will try to make a Prawn based patch.
Updated by Michael Baikov over 16 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 :)
Updated by Jean-Philippe Lang almost 16 years ago
- Status changed from New to Closed
- Resolution set to Duplicate
Dup of #61.
Updated by Nikolay Kotlyarov almost 15 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.