You are here: Re: XML parse error: Not well-formed line « All PHP « IT news, forums, messages
Re: XML parse error: Not well-formed line

Posted by Janwillem Borleffs on 04/22/06 00:21

hotortillas wrote:
> I developed an rss feed for my site, created by an php file, it is
> working but in one of the text it created is showing an error because
> there is this character: " ' ", wich the XML file is changing to a
> little "L" character.
>

The problem are the accents (e.g. "tracci�n"). These are invalid characters
in XML with UTF-8 encoding, unless captured in cdata sections.

Otherwise, you should transform them into valid entities. Have a look at
http://www.php.net/htmlentities and the manual pages for the several replace
functions (preg_replace, str_replace etc.).


JW

 

Navigation:

[Reply to this 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

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