File Content Extraction 26.1
Filter SDK Java Programming Guide

# Specify a Target Character Set

File Content Extraction 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);

Copyright 1997-2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.1

Topic Title: Specify a Target Character Set