SimplePie::set_input_encoding

Advertisement

Summery Summery

Set the character encoding used to parse the feed

Syntax Syntax

SimplePie::set_input_encoding( string $encoding = false )

Description Description

This overrides the encoding reported by the feed, however it will fall back to the normal encoding detection if the override fails

Parameters Parameters

$encoding

(Optional) Character encoding

Default value: false

Source Source

File: wp-includes/class-simplepie.php

	 */
	public function enable_cache($enable = true)
	{
		$this->cache = (bool) $enable;
	}

	/**
	 * SimplePie to continue to fall back to expired cache, if enabled, when
	 * feed is unavailable.
	 *
	 * This tells SimplePie to ignore any file errors and fall back to cache

Advertisement

Advertisement

Leave a Reply