How to properly display traditional Chinese characters in PDF report output

How to properly display traditional Chinese characters in PDF report output

book

Article ID: KB0070279

calendar_today

Updated On:

Products Versions
ibi WebFOCUS WebFOCUS version 82 to 92x

Description

Problem:

Traditional Chinese characters in the PDF report output fail to display the Traditional Chinese characters
User-added image

Resolution

Solution:

This is because the specification of the PDF report with "Lucida Sans Unicode" font does not have CJK characters.

Therefore, all CJK characters are not visible. There are several ways to show CJK characters.

  1. Use LANGUAGE value
    Use ON TABLE SET LANGUAGE TW/ROC or SET LANGUAGE = TW/ROC
  2. Use STYLE sheet
    ON TABLE SET STYLE *
    TYPE=REPORT, FONT=Arial Unicode MS, $
    END
  3. Override the default font as Arial Unicode MS by fontuser.xml

However, your system to render PDF needs ALRIALUNI.TTF font. This font comes from Microsoft Office 2000 through 2010.
You are also able to download it from FreeFontsDownload.net or https://github.com/kaienfr/Font/blob/master/font/ARIALUNI.TTF

When you do not want to install Arial Unicode MS font on all client systems, You can embed it into PDF.

 

Issue/Introduction

How to properly display traditional Chinese characters in PDF report output