Opened 16 years ago

Closed 16 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: print 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)

map_425cb09.pdf (9.6 KB ) - added by mschulz 16 years ago.
Example pdf, with scrambled chars that come from i18n, special chars in comments are ok.

Download all attachments as: .zip

Change History (4)

by mschulz, 16 years ago

Attachment: map_425cb09.pdf added

Example pdf, with scrambled chars that come from i18n, special chars in comments are ok.

comment:1 by christoph, 16 years ago

Owner: changed from mapbender_dev@… to christoph

comment:2 by christoph, 16 years ago

Cc: mschulz added

comment:3 by christoph, 16 years ago

Resolution: fixed
Status: newclosed

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.

http://trac.osgeo.org/mapbender/changeset/2772

Note: See TracTickets for help on using tickets.