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

      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.

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

            [CONFSERVER-45192] Non Latin characters are not displayed in Custom Export to PDF page

            A fix for this issue is available in Confluence Server and Data Center 7.18.2.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available in Confluence Server and Data Center 7.18.2. Upgrade now or check out the Release Notes to see what other issues are resolved.

            A fix for this issue is available in Confluence Server and Data Center 7.17.5.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available in Confluence Server and Data Center 7.17.5. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Anton added a comment -

            So -Dfile.encoding=UTF-8 is present in config and it is not helped (Windows, MSSQL)

            Anton added a comment - So -Dfile.encoding=UTF-8 is present in config and it is not helped (Windows, MSSQL)

            Anton added a comment -

            We have the same problem Confluence version 6.4.3

            Anton added a comment - We have the same problem Confluence version 6.4.3

            Is there a solution to the problem?

            license_all@voentelecom.ru added a comment - Is there a solution to the problem?

            kohts added a comment -

            Hi.

            We have similar issue, but Cyrillic characters during export are replaced

            with spaces, not with question marks.

            Confluence 6.1.3

            Please find below screenshots of the page in confluence (web UI) and export to PDF.

             

             

             

            kohts added a comment - Hi. We have similar issue, but Cyrillic characters during export are replaced with spaces, not with question marks. Confluence 6.1.3 Please find below screenshots of the page in confluence (web UI) and export to PDF.      

            Hi.

            We have the same issue in Confluence 6.1.0. Unicode fonts are installed.

            The problem only in UI. In exported PDF files all non-Latin characters looking fine.

            Stanislav Shumlianskyi added a comment - Hi. We have the same issue in Confluence 6.1.0. Unicode fonts are installed. The problem only in UI. In exported PDF files all non-Latin characters looking fine.

              ablekhman@atlassian.com Alex Blekhman (Inactive)
              mkhairuliana Monique Khairuliana (Inactive)
              Affected customers:
              20 This affects my team
              Watchers:
              24 Start watching this issue

                Created:
                Updated:
                Resolved: