|
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]
|