Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-45192

Non Latin characters are not displayed in Custom Export to PDF page

    XMLWordPrintable

Details

    Description

      Summary

      Non-Latin or Special Characters are displayed as question marks '?' in the Custom Export PDF page

      Environment

      • Windows
      • MySQL 5.6
      • MSSQL

      Steps to Reproduce

      1. Download this confluence space XML export : Confluence-space-export-155533-6.xml.zip
      2. Import into Confluence 5.10.x
      3. Go to the newly imported space "пробное пространство пять десять"
      4. Space Tools > Content Tools > export >PDF > Custom Export

      Expected Results

      All the characters are rendered properly

      Actual Results

      All the Cyrillic characters are not rendered properly, and displayed as question marks '?' instead:

      Notes

      1. It seems like other Custom Export pages are not affected by this issue. For example, the HTML Custom Export:

        as well as XML Custom Export:

        are not affected
      2. This issue affect a single page export to PDF as well.
      3. This issue does not affect Confluence hosted on Linux

      Workaround

      First, make sure that the reason for the problem is wrong file encoding used by the JVM.
      Go to Admin cog -> General Configuration -> System Information.
      Find the file.encoding property and observe the value. If it is anything other than UTF-8, that's the problem.

      Confluence only supports UTF-8 file encoding and if it isn't used by default, it will result in issues like this.

      Fix is described in the following KB article:
      https://confluence.atlassian.com/confkb/filesystem-encoding-is-written-as-ansi_x3-4-1968-even-though-the-server-is-set-to-utf-8-658735809.html

      Specifically, adding the:

      -Dfile.encoding=UTF-8
      

      property to Confluence and then restarting the instance should fix it.

      Attachments

        1. 20170703-confluence-cyrillic-pdf-export-1.png
          20170703-confluence-cyrillic-pdf-export-1.png
          43 kB
        2. 20170703-confluence-cyrillic-pdf-export-2.png
          20170703-confluence-cyrillic-pdf-export-2.png
          37 kB
        3. Confluence-space-export-155533-6.xml.zip
          3 kB
        4. screenshot-1.png
          screenshot-1.png
          40 kB
        5. screenshot-2.png
          screenshot-2.png
          35 kB
        6. screenshot-3.png
          screenshot-3.png
          41 kB

        Issue Links

          Activity

            People

              ablekhman@atlassian.com Alex Blekhman
              mkhairuliana Monique Khairuliana (Inactive)
              Votes:
              20 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: