Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-237

PDF export fails if there are some special characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.0 B1
    • {Unused} Core
    • None
    • RedHat 4 - Linux 2.6.9
      JDK JRockit 1.5.0_4
      Tomcat 5.5.12
      JAVA_OPTS="-server -Dfile.encoding=UTF-8"
      The encoding is UTF-8 (web.xml, xwiki.cfg, velocity.properties)
    • PDF generation UTF-8

    Description

      I can not generate a PDF when there is some special characters such as :
      à ' ...

      However é è â works well.

      That's a really problem to generate PDF for French pages that contains a lot of à.

      The hereunder message shows the exception that is generated when I click on the "PDF" button.

      XWikiAction:execute:164 - Uncaught exception: Error number 12003 in 12: XSL Transformation Failed
      Wrapped Exception: Invalid byte 2 of 2-byte UTF-8 sequence.
      com.xpn.xwiki.XWikiException: Error number 12003 in 12: XSL Transformation Failed
      Wrapped Exception: Invalid byte 2 of 2-byte UTF-8 sequence.
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyXsl(PdfExportImpl.java:176)
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.convertXHtmlToXMLFO(PdfExportImpl.java:154)
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:86)
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:115)
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:129)
              at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportToPDF(PdfExportImpl.java:119)
              at com.xpn.xwiki.web.PDFAction.render(PDFAction.java:23)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:135)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
              at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:127)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
              at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
              at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
              at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744)
              at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674)
              at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866)
              at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      

      Attachments

        Issue Links

          Activity

            People

              hritcu Catalin Hritcu
              moghrabi Xavier MOGHRABI
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: