WordPress at a glance
function is not described

SimplePie::set_input_encoding() public WP 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

{} It's a method of the class: SimplePie{}

No Hooks.


null. Nothing.


$SimplePie = new SimplePie();
$SimplePie->set_input_encoding( $encoding );
Character encoding

Code of SimplePie::set_input_encoding() WP 5.7.2

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