# Set the Character Set During Subfile Extraction

You can convert the character set of a subfile at the time the subfile is extracted from the container and before it is filtered. This is most often used to set the character set of a mail message's body text. See Filter PDF Files for more information.

To specify the source character set of a subfile, call `config->source_encoding()` with the appropriate value from the enumerated list `Encoding` in `Keyview_Enumerations.hpp`.

To specify the target character set of a subfile, call `config->target_encoding()` with the appropriate value from the enumerated list `Encoding` in `Keyview_Enumerations.hpp`.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm