tidy_set_encoding

(PECL tidy >= 0.5.2)

tidy_set_encodingSet the input/output character encoding for parsing markup

說明

bool tidy_set_encoding ( string $encoding )

Sets the encoding for input/output documents.

參數

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.

回傳值

如果成功則回傳 TRUE,失敗則回傳 FALSE

註釋

Note: 本函式只在 Tidy 1.0 中存在。在 Tidy 2.0 中,該函式已過時並被移除。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top