On Mon, Sep 04, 2006 at 12:46:56PM +0200, Xavier MOGHRABI wrote:
Dear all,
For UTF-8 pdf generation, you have to patch the following class : com.xpn.xwiki.pdf.impl.PdfExportImpl (http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/xwiki/xwiki/trunk/src/mai...)
by replacing the ligne : tidy.setCharEncoding(Configuration.LATIN1); with tidy.setCharEncoding(Configuration.UTF8);
It works with French characters but not completly with Chinese or Vietnamese.
Thank's a a lot, that's it! Documents are generated now, at least, and are returned with appplication/x-pdf content type. Polish characters are not working yet, but I've heard I should configure polish fonts for FOP. Best regards, R. -- "First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.