Supported values: raw, ascii, latin0, latin1, utf8, iso2022, mac, win1252, ibm858, utf16le, utf16be, utf16, big5, shiftjis
This option specifies the character encoding Tidy uses for output. Some of the output encodings affect whether or not some characters are translated to entities, although in all cases, some entities will be written according to other Tidy configuration options.
For ascii, mac, and win1252 output encodings, entities will be used for all characters with values over 127.
For raw output, Tidy will write values above 127 without translating them to entities.
Output using latin1 will cause Tidy to write character values higher than 255 as entities.
The UTF family such as utf8 will write output in the respective UTF encoding.
Asian output encodings such as iso2022 will write output in the specified encoding, assuming a corresponding input-encoding was specified.
Tidy is not an encoding converter. Although the Latin and UTF encodings can be mixed freely, it is not possible to convert Asian encodings to Latin encodings with Tidy.
See also: --char-encoding