SimplePie 1.3.1 is now available. Upgrade now!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie » get_encoding()

get_encoding()

Description

class SimplePie {
	get_encoding ()
}

Returns the character encoding that was outputted by SimplePie.

Availability

  • Available since SimplePie Preview Release.

Examples

Display the character encoding

$feed = new SimplePie();
$feed->set_feed_url('http://simplepie.org/blog/feed/');
$feed->init();
$feed->handle_content_type();
 
echo $feed->get_encoding();

See Also


reference/simplepie/get_encoding.txt · Last modified: 2011/03/05 19:56 (external edit)