Home > PHP > Function > Tidy > tidy_set_encoding()

tidy_set_encoding()

tidy_set_encoding - Set the input/output character encoding for parsing markup

Syntax

bool tidy_set_encoding (string $encoding)

Arguments

  • encoding - The encoding parameter sets the encoding for input/output documents. The possible values for encoding are: ascii, latin0, latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, utf16le, utf16be, big5, and shiftjis.

Description

Sets the encoding for input/output documents.

Version

PHP PECL tidy >= 0.5.2

Return value

Returns TRUE on success or FALSE on failure.