SimplePie 1.5 is now available!

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

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



class SimplePie {
	set_input_encoding ( [string $encoding = false] )

Allows you to override the character encoding of the feed. This is only useful for times when the feed is reporting an incorrect character encoding (as per RFC 3023 and Determining the character encoding of a feed). This setting is similar to set_output_encoding().

The number of supported character encodings depends on whether your web host supports mbstring, iconv, or both. See Supported Character Encodings for more information.


  • Available since SimplePie 1.0.
  • Previously existed as input_encoding() since Beta 3.



The character encoding to use instead of allowing SimplePie to auto-detect it.


Override a feed's input

$feed = new SimplePie();
echo $feed->get_title();

See Also

reference/simplepie/set_input_encoding.txt · Last modified: 2011/03/06 03:56 (external edit)