Simplified Chinese characters not displayed properly in PDF reports


When you generate a report in Simplified Chinese, the Simplified Chinese characters do not appear properly.This is due to difference in the font definition. To correct this issue, update the fontalias.xml file.

To update the font definitions

  1. Check whether Arial Unicode MS font is installed at C:/windows/fonts.
  2. If the font is not available you can download it and copy it to C:/windows/fonts.
  3. Edit the fontalias.xml file located at the following locations:
    • installation directory/Program Files(x86)/SAP BusinessObjects/SAP BusinessObjects Enterprise XI4.0/ win32_x86/fonts
    • BO_INSTALL_DIR\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0 \win64_x64\fonts
  1. Add the entry for the new font by adding it before the entry for the default font, in the script.

     <FONT NAME="Arial Unicode MS">
                    <FONTFAMILY PLATFORM="ttf" NAME="Arial Unicode MS">
                    <FONTATTRIBUTE BOLD="false" ITALIC="false" LOGICAL="Arial Unicode MS" PHYSICAL="arialuni.ttf,1"/>
                    </FONTFAMILY>
                    <FONTFAMILY PLATFORM="win" NAME="Arial Unicode MS"/>
                    <FONTFAMILY PLATFORM="java" NAME="Arial Unicode MS"/>
                    <FONTFAMILY PLATFORM="html" NAME="Arial Unicode MS"/>
                    </FONT>

  2. In the file, search and identify the font definition for Tahoma. The script appears as follows:

     <font name="Tahoma">
       <os type="all">
           <Attributs style="0" filename="tahoma.ttf" encoding="" aliaspsname="tahoma"/>
                <Attributs style="1" filename="tahomabd.ttf" encoding="" aliaspsname="tahomabd"/> </os>>
                     </font>
  3. Update the script as follows:

    <font name="Tahoma">
      <os type="all">
          <Attributs style="0" filename="simsun.ttc" encoding="CP936" aliaspsname="SimSun"/>
          <Attributs style="1" filename="" encoding="CP936" aliaspsname=""/>
          <Attributs style="2" filename="" encoding="CP936" aliaspsname=""/>
          <Attributs style="3" filename="" encoding="CP936" aliaspsname=""/>
      </os>>
    </font>
  4. Save and close the file.
  5. Open i18n.xml file located at the following location:
    • installation directory/Program Files(x86)/SAP BusinessObjects/SAP BusinessObjects Enterprise XI4.0/ win32_x86/Scripts
  6. Add the following code at the end of the font_aliasing section and just above the default section:

    <font name="Arial Unicode MS">
      <os type="all">
          <Attributs style="0" filename="arialuni.ttf" encoding=""aliaspsname="Arial Unicode MS"/>
      </os>
    </font>
  7. In the file, search and identify the font definition for Tahoma. Original script appears as follows:

    <FONT NAME="Tahoma">
       <FONTFAMILY PLATFORM="ttf" NAME="Tahoma">
       <FONTATTRIBUTE BOLD="false" ITALIC="false" LOGICAL="Times New Roman" PHYSICAL="Tahoma.ttf"/>
       <FONTATTRIBUTE BOLD="true" ITALIC="false" LOGICAL="Times New Roman Bold" PHYSICAL="Tahomabd.ttf"/>
       </FONTFAMILY>
       <FONTFAMILY PLATFORM="win" NAME="Tahoma"/>
       <FONTFAMILY PLATFORM="java" NAME="Tahoma, 'Times New Roman', 'Courier New'"/>
       <FONTFAMILY PLATFORM="html" NAME="Tahoma, 'Times New Roman', 'Courier New'"/>
    </FONT>

     

  8. Update the script as follows:

    <FONT NAME="Tahoma">
      <FONTFAMILY PLATFORM="ttf" NAME="SimSun">
      <FONTATTRIBUTE BOLD="false" ITALIC="false" LOGICAL="SimSun" PHYSICAL="simsun.ttc,0;ARIALUNI.TTF"/>
      </FONTFAMILY> <FONTFAMILY PLATFORM="win" NAME="SimSun"/>
      <FONTFAMILY PLATFORM="java" NAME=" SimSun, 'Arial Unicode MS'"/>
      <FONTFAMILY PLATFORM="html" NAME=" SimSun, 'Arial Unicode MS'"/>
    </FONT>

     

  9. Save and close the file.
  10. Restart Tomcat.
  11. Try viewing any other Chinese document in Adobe Acrobat, and if you don't have the correct PDF Chinese Characters installed then it will prompt you do install it.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*