Reply to UTF-8 to ISO-8859-1

Your name:

Reply:


Posted by "Richard Lynch" on 10/17/06 11:30

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация