UTF-8 to ISO-8859-1

From: Date: Fri, 28 Oct 2005 20:55:06 +0000
Subject: UTF-8 to ISO-8859-1
Groups: php.general 
Request: Send a blank email to php-general+get-224793@lists.php.net to get a copy of this message
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

« previous php.general (#224793) next »