#8 how to detect encoding in magpie ?

open
nobody
None
5
2004-07-16
2004-07-16
No

I am aggregating different atom and RSS feeds. Usually,
I get iso8859-1 pieces of text and I publish on my page
in iso8859-1 too. But, one of the RSS I get is in UTF8
and some characters are broken, because no conversion
is done.

Maybe I can do it in php, but the problem is: how do I
detect the encoding with magpie ? I suppose that at
some point, magpie parses all the xml document, and
knows the encoding. Maybe some function may return the
encoding ? Or maybe it exist some way of knowing it
that I do not know...

Thanks,

JFL

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks