TRVRTFReaderProperties.DefCharsetCodePage

<< Click to display table of contents >>

TRVRTFReaderProperties.DefCharsetCodePage

A code page used to convert text of DEFAULT_CHARSET.

property DefCharsetCodePage: TRVCodePage;

(introduced in version 24)

Typically, RTF files should not contain text with the charset DEFAULT_CHARSET. The text should be represented either in Unicode encoding or as characters of a specific charset.

However, some programs that create RTF files may specify DEFAULT_CHARSET for the text. As a result, the characters read from the file will depend on the default language set in the operating system.

This property allows you to override the code page used for text with DEFAULT_CHARSET. For example, you can set it to 1252 to use characters from Western alphabets.

This property is only for RTF files, because DocX files contain only Unicode text.

Default value:

0 (CP_ACP)