Special Vietnamese characters are not correctly exported using NativePDF

Symptom

When using NativePDF to export PDF, some characters in DataWindow display incorrectly in the exported PDF, for example, "Mã/" displays as "Mă/".

Environment

PowerBuilder 2019 R3 Build 2703 or later

Cause

The text object in DataWindow contains special characters but the Charset property is not set correctly.

Solution

Set the Charset property of the text object in DataWindow to ansi! to solve the issue.