I'm having problems with character encoding, because the charset of my html document is set to iso-8859-1 and rssphp automatically converts to utf-8. I tried to disable this be setting RSS_PHP_ENCODING_CONVERSION to false to no avail.
How can I force the returned values to be in iso-8859-1 instead of utf-8?
Any pointers would be very much appreciated.
Cheers, Nick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem lies with PHP's DOM API, basically DOMDocument only uses and returns UTF-8, thus the only way to get latin1 (iso-8859-1) is to utf8_decode($the_output);
Alternatively you could always use iconv
Many Regards
Nathan
nathan@rssphp.net
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
Very nice library! Just a little question:
I'm having problems with character encoding, because the charset of my html document is set to iso-8859-1 and rssphp automatically converts to utf-8. I tried to disable this be setting RSS_PHP_ENCODING_CONVERSION to false to no avail.
How can I force the returned values to be in iso-8859-1 instead of utf-8?
Any pointers would be very much appreciated.
Cheers, Nick
Hi Nick,
The problem lies with PHP's DOM API, basically DOMDocument only uses and returns UTF-8, thus the only way to get latin1 (iso-8859-1) is to utf8_decode($the_output);
Alternatively you could always use iconv
Many Regards
Nathan
nathan@rssphp.net