SimplePie::set_input_encoding()publicWP 1.0

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. Ничего.


$SimplePie = new SimplePie();
$SimplePie->set_input_encoding( $encoding );
Character encoding
По умолчанию: false

Код SimplePie::set_input_encoding() WP 6.1.1

public function set_input_encoding($encoding = false)
	if ($encoding)
		$this->input_encoding = (string) $encoding;
		$this->input_encoding = false;