Hi,
This must be something obvious I am missing, so I thought I'd ask.
I load an rss feed:
App::import('Core', 'Xml');
$rss = new XML($url_to_an_rss_feed);
And thought that these would automatically reflect the encoding (and
version for that matter) of the xml loaded:
debug( $rss->encoding );
debug( $rss->version );
But they don't. I have changed the xml attributes and response headers
to try to get some value other than the defaults but nothing. I always
see UTF-8 and 1.0. Firefox reacts to all these encoding changes so
they seem to be valid changes.
How do I know the encoding of a loaded xml?
Or, does Xml convert everything to UTF-8? (have only seen a conversion
in XmlTextNode::toString())
/Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---