To determine the output character set of a filtered document, Filter considers the following:
Below are some rules for the determination of character set mapping:
Determining the Output Character Set—Example illustrates how Filter determines the character set of the output text.
| Source charset read by Filter | Source charset specified in API | Target charset specified in API | Output charset |
|---|---|---|---|
| No | No | No | no conversion |
| No | KVCS_936 | No | OS code page |
| No | No | UNICODE | no conversion |
| No | KVCS_936 | UNICODE | UNICODE |
| Yes | No | No | OS code page |
| Yes | KVCS_936 | No | OS code page |
| Yes | No | UNICODE | UNICODE |
| Yes | KVCS_936 | UNICODE | UNICODE |
|
|