[xwiki-users] German letters changed to ? by pdf export
Hi there, Unfortunately e have a little problem with the export to a pdf file out of our xwiki. Some German letters (e.g.: ö, ä, ß) are printed to ? when generating a pdf. Does anybody know how to solve the this? Looking forward for helpfully answers. Thanks a lot! Roman A. Anastasini Roman Anastasini Apprentice AdLINK Internet Media AG Phone: +49 (0)2602 96 1868 HRB Montabaur 5432 Vorstand: Stéphane Cordier, Andreas Janssen, Marc Stilke Elgendorfer Str. 57 Fax: +49 (0)2602 96 1912 56410 Montabaur Mobile: Germany [email protected] [cid:[email protected]]<http://www.adlinkgroup.net/> www.adlinkgroup.net<http://www.adlinkgroup.net/> [cid:[email protected]]<http://www.adlinkmedia.net/>[cid:[email protected]]<http://www.affili.net/>[cid:[email protected]]<http://www.compositedigital.com/>[cid:[email protected]]<http://www.netdialogs.de/>[cid:[email protected]]<http://www.sedo.com/> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient of this e-mail, you are hereby notified that saving, distribution or use of the content of this e-mail in any way is prohibited. If you have received this e-mail in error, please notify the sender and delete the e-mail.
Hi, i think, that problem is in class which generate PDFs. In the class is preset to encoding latin-1. The problem is in this line tidy.setCharEncoding(Configuration.LATIN1); in PdfExportImpl class. So only solution is change this line and recompile the xwiki. Or maybe compile only this class and change struts action to your new file. Jan On 12/12/07, Roman Anastasini <[email protected]> wrote:
Hi there,
Unfortunately e have a little problem with the export to a pdf file out of our xwiki.
Some German letters (e.g.: ö, ä, ß) are printed to ? when generating a pdf.
Does anybody know how to solve the this?
Looking forward for helpfully answers.
Thanks a lot!
Roman A. Anastasini
Roman Anastasini Apprentice
AdLINK Internet Media AG
Phone:
+49 (0)2602 96 1868
HRB Montabaur 5432 Vorstand: Stéphane Cordier, Andreas Janssen, Marc Stilke
Elgendorfer Str. 57
Fax:
+49 (0)2602 96 1912
56410 Montabaur
Mobile:
Germany
[image: AdLINK Group] <http://www.adlinkgroup.net/>
www.adlinkgroup.net
[image: AdLINK Media] <http://www.adlinkmedia.net/>[image: Affilinet] <http://www.affili.net/>[image: Composite Digital] <http://www.compositedigital.com/>[image: net:dialogs] <http://www.netdialogs.de/>[image: Sedo] <http://www.sedo.com/>
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient of this e-mail, you are hereby notified that saving, distribution or use of the content of this e-mail in any way is prohibited. If you have received this e-mail in error, please notify the sender and delete the e-mail.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Jan Kodera wrote:
Hi, i think, that problem is in class which generate PDFs. In the class is preset to encoding latin-1. The problem is in this line tidy.setCharEncoding(Configuration.LATIN1); in PdfExportImpl class. So only solution is change this line and recompile the xwiki. Or maybe compile only this class and change struts action to your new file.
Hi, That line doesn't exist in recent versions of the code, so the fix above works if you are using a pre-1.1 xwiki. For newer versions instead, you should make sure the encoding is properly set. For the moment, it is a bit difficult to do that. Since german characters are part of the latin1 (iso8859-1) encoding, they should work out of the box, so this means that one of the following is not configured properly: - the encoding in WEB-INF/web.xml - the encoding in WEB-INF/xwiki.cfg - the java vm encoding. This is a bit harder to configure; for Tomcat, you should add " -Dfile.encoding=iso-8859-1 " to the CATALINA_OPTS variable in $tomcat_dir$/bin/catalina.sh Sergiu
Jan
On 12/12/07, *Roman Anastasini* <[email protected] <mailto:[email protected]>> wrote:
Hi there,
Unfortunately e have a little problem with the export to a pdf file out of our xwiki.
Some German letters (e.g.: ö, ä, ß) are printed to ? when generating a pdf.
Does anybody know how to solve the this?
Looking forward for helpfully answers.
Thanks a lot!
Hi, okay, i have proper encoding configuration but czech characters is replaced by #. It may lies in fonts. I mean, that fonts which is used now have not support for czech characters. So if there will be option to set own fonts ( http://xmlgraphics.apache.org/fop/0.94/embedding.html#config-external ) it may help. Jan On Dec 13, 2007 10:35 AM, Sergiu Dumitriu <[email protected]> wrote:
Jan Kodera wrote:
Hi, i think, that problem is in class which generate PDFs. In the class is preset to encoding latin-1. The problem is in this line tidy.setCharEncoding(Configuration.LATIN1); in PdfExportImpl class. So only solution is change this line and recompile the xwiki. Or maybe compile only this class and change struts action to your new file.
Hi,
That line doesn't exist in recent versions of the code, so the fix above works if you are using a pre-1.1 xwiki. For newer versions instead, you should make sure the encoding is properly set. For the moment, it is a bit difficult to do that. Since german characters are part of the latin1 (iso8859-1) encoding, they should work out of the box, so this means that one of the following is not configured properly:
- the encoding in WEB-INF/web.xml - the encoding in WEB-INF/xwiki.cfg - the java vm encoding. This is a bit harder to configure; for Tomcat, you should add " -Dfile.encoding=iso-8859-1 " to the CATALINA_OPTS variable in $tomcat_dir$/bin/catalina.sh
Sergiu
Jan
On 12/12/07, *Roman Anastasini* <[email protected] <mailto:[email protected]>> wrote:
Hi there,
Unfortunately e have a little problem with the export to a pdf file out of our xwiki.
Some German letters (e.g.: ö, ä, ß) are printed to ? when generating a pdf.
Does anybody know how to solve the this?
Looking forward for helpfully answers.
Thanks a lot!
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (3)
-
Jan Kodera -
Roman Anastasini -
Sergiu Dumitriu