Specify a Target Character Set

KeyView provides a way to specify the target character set when extracting subfiles. This is only used to set the character set when extracting the body of a mail message. OpenText recommends using UTF-8 or UTF-16 because these are widely supported and can encode a diverse range of characters.

To specify a target character set

  • In the Java API, use the setTargetCharset method on the ExtSubFileExtractConfig class that you pass in to extExtractSubFile. For example:

    extconfig = new ExtSubFileExtractConfig();
    extconfig.setTargetCharset(Filter.CHARSET_UTF8);
    extinfo = myFilter.extExtractSubFile(docContextID, subfileIndex, extconfig);