Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-21908 Non-latin Chinese/Japanese characters are not supported in PDF file
  3. SAK-21909

In site-manage tool, non-latin (Japanese/Chinese) characters are not supported while export site members in PDF file.



    • Type: Sub-task
    • Status: OPEN
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1, 2.9.0
    • Fix Version/s: None
    • Labels:
    • Property addition/change required:


      To show the bug:
      1. Add a user with non-latin name to a site. You can just copy some Chinese characters from zh.wikipedia.org
      2. Go to "site info" of the site, and click "Printable Version". And in the PDF file, all special chars are replaced by '#'
      You can see the screen shot in attachment. (Use Sakai nightly trunk build)

      1. Modify sakai.properties
      Add an entry: fop.pdf.default.font=AR PL UMing CN
      "AR PL UMing CN" is a Chinese font. In Linux, it can be installed via "ttf-arphic-uming'
      Admin can set this to any font he/she like, only if the font is installed in the OS.

      2. Modify pom.xml
      Update Apache FOP version from 0.20.5 to 1.0

      3. Add config/userconfig.xml
      Let FOP auto detect System fonts.

      4. Modify config/participants-all-attrs.xsl, src/bundleprintParticipant.properties
      Set fo:root font to DEFAULT_FONT
      Add i18n support for table title. This title value would be fetch from src/bundle/printParticipant.properties

      5. Modify src/java/org/sakaiproject/site/tool/SiteInfoToolServlet.java
      Update the FOP related code to couple with FOP 1.0. Add some parameters to support i18n of table tite.

      I modify the code based on Sakai 2.8.1. The source are in the attachment(without sakai.properties).
      Also, you can see the effect after fix the bug as attachment

        Gliffy Diagrams



            1. bug.png
              59 kB
              Gao Jun
            2. chinese_characters_site-info_export.jpg
              28 kB
              Teresa Collins
            3. chinese_characters_site-info.jpg
              88 kB
              Teresa Collins
            4. fix.png
              97 kB
              Gao Jun
            5. kernel_SAK-21909.patch.txt
              2 kB
              David Roldán Martínez
            6. sakai-site-manage-tool.tar.gz
              7 kB
              Gao Jun
            7. site-manage_SAK-21909.patch.txt
              14 kB
              Aaron Zeckoski
            8. site-manage_SAK-21909.patch.txt
              11 kB
              David Roldán Martínez
            9. site-manage_SAK-21909.patch2.txt
              4 kB
              Yuki Yamada
            10. src.diff
              11 kB
              Gao Jun

              Issue Links



                  Unassigned Unassigned
                  gaojun Gao Jun
                  1 Vote for this issue
                  5 Start watching this issue



                      Git Integration