SimplePie::set_input_encoding()
Set the character encoding used to parse the feed
This overrides the encoding reported by the feed, however it will fall back to the normal encoding detection if the override fails
Метод класса: SimplePie{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$SimplePie = new SimplePie(); $SimplePie->set_input_encoding( $encoding );
- $encoding(строка)
- Character encoding
По умолчанию: false
Код SimplePie::set_input_encoding() SimplePie::set input encoding WP 6.5.2
public function set_input_encoding($encoding = false) { if ($encoding) { $this->input_encoding = (string) $encoding; } else { $this->input_encoding = false; } }