So, I'm parsing some XML and dumping some stuff to a web-site.

The character-encoding for the HTML of the output has already been set
by headers() to ISO-8859-1 for me, and I'm stuck with that.

So be it.

The XML has this at the top:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

We don't (and won't soon) have recode nor iconv installed, but
utf8_recode() is there.

So, my question is:

Can I just:
utf8_recode($all_the_xml_file);

Or do I have to utf8_recode() every single chunk of data between the
tags?  Ugh.

Oh well.  At least I had fun writing the parallel XML feed reader,
which sped things up by about 40% over sequential file_get_contents-es
:-)

I should find out if I can OS that class.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to