> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TextEncodingTypeEnum

TextEncodingTypeEnum enumeration constants are used to denote possible types of the output file encoding for export in HTML, TXT and CSV formats.

```
typedef enum {
 TET_Simple,
 TET_UTF8,
 TET_UTF16,
 TET_Auto
} TextEncodingTypeEnum;
```

## Elements

<table><thead><tr><th><p><strong>Name</strong></p></th><th><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p>TET\_Auto</p></td><td><p>Encoding is selected automatically. The selection depends on the values of other properties of the parameters object:</p><ul><li>for <strong><a href="/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams#encodingtype">ITextExportParams::EncodingType</a></strong> this constant resolves into TET\_Simple if the export format constant was <strong><a href="/fine-reader/engine/api-reference/enumerations/fileexportformatenum#fef_textversion10defaults">FEF\_TextVersion10Defaults</a></strong> and into TET\_UTF8 if the export format constant was <strong><a href="/fine-reader/engine/api-reference/enumerations/fileexportformatenum#fef_textunicodedefaults">FEF\_TextUnicodeDefaults</a></strong>;</li><li>for <strong><a href="/fine-reader/engine/api-reference/parameter-objects/export-parameters/htmlexportparams#encodingtype">IHTMLExportParams::EncodingType</a></strong> this constant means automatic encoding selection if the export format constant was <strong><a href="/fine-reader/engine/api-reference/enumerations/fileexportformatenum#fef_htmlversion10defaults">FEF\_HTMLVersion10Defaults</a></strong> (but if encoding is not successfully determined, UTF-8 is used), and TET\_UTF8 if the export format constant was <strong><a href="/fine-reader/engine/api-reference/enumerations/fileexportformatenum#fef_htmlunicodedefaults">FEF\_HTMLUnicodeDefaults</a></strong>;</li><li>for the <em>encodingType</em> parameter of the <strong><a href="/fine-reader/engine/api-reference/text-related-objects/plaintext/savetotextfile-method">IPlainText::SaveToTextFile</a></strong> method this constant means automatic encoding selection, but if encoding could not be successfully determined, UTF-8 encoding is used.</li></ul></td></tr><tr><td><p>TET\_Simple</p></td><td><p>Simple encoding, one byte per symbol.</p></td></tr><tr><td><p><a name="tet_utf16" />TET\_UTF16</p></td><td><p>Native Unicode format where every symbol is represented by two-byte sequence.</p></td></tr><tr><td><p><a name="tet_utf8" />TET\_UTF8</p></td><td><p>Unicode UTF-8 format. UTF-8 is a code page that uses a string of bytes to represent a 16-bit Unicode string where ASCII text (\<=U+007F) remains unchanged as a single byte, U+0080-07FF (including Latin, Greek, Cyrillic, Hebrew, and Arabic) is converted to a 2-byte sequence, and U+0800-FFFF (Chinese, Japanese, Korean, and others) becomes a 3-byte sequence.</p></td></tr></tbody></table>

## Used in

[ITextExportParams::EncodingType](/fine-reader/engine/api-reference/parameter-objects/export-parameters/textexportparams#encodingtype)

[IHTMLExportParams::EncodingType](/fine-reader/engine/api-reference/parameter-objects/export-parameters/htmlexportparams#encodingtype)

[IPlainText::SaveToTextFile](/fine-reader/engine/api-reference/text-related-objects/plaintext/savetotextfile-method)
