Opened 17 years ago
Closed 17 years ago
#265 closed defect (fixed)
print pdf with locale set to de_DE: encoding problems
Reported by: | mschulz | Owned by: | christoph |
---|---|---|---|
Priority: | major | Milestone: | 2.5 release |
Component: | i18n | Version: | 2.5 rc5 |
Keywords: | Cc: | mschulz |
Description
The print module is internationalized via the gettext functions used in printPDF.conf. When setting the locale to de_DE, the msgstrings get transalated, but since the Mapbender.po file is encoded in utf-8, the translated strings are also encoded in utf-8. That is ok in the application but when placed as utf-8 strings in the pdf, it doesn't show the expected german special characters but the known "garbage" characters.
Where is the problem? czPDF lib? The fonts that get included in the pdf?
Attachments (1)
Change History (4)
by , 17 years ago
Attachment: | map_425cb09.pdf added |
---|
comment:1 by , 17 years ago
Owner: | changed from | to
---|
comment:2 by , 17 years ago
Cc: | added |
---|
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
text strings to be included in the PDF are now utf8_decoded. This is only a temporary solution, as Mapbender 2.5 only supports english and german. In the long run, we need a PDF lib that uses an UTF8 font.
Example pdf, with scrambled chars that come from i18n, special chars in comments are ok.