news.php.net rss requires encoding type, doesnt parse as XML in IE

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: news.php.net rss requires encoding type, doesnt parse as XML in IE
References: 1  Groups: php.dev php.mirrors 
Request: Send a blank email to php-dev+get-83590@lists.php.net to get a copy of this message
Hi All, If you goto the following url [ http://news.php.net/group.php? group=php.general&format=rss ] in IE you'll get the error: An invalid character was found in text content. Error processing resource 'http://news.php.net/group.php?group=php.general&format=rss'. Line 95, Position 78 with line 95 being <description>&lt;a href=&quot;mailto:jose.leon% 40securitydata.es&quot;&gt;José_león_serna&lt;/a&gt;</description> Its the accent on the e and o's (which are native to many west-european languages). The solution is simple, set the encoding type. Replace <?xml version="1.0" standalone="yes"?> with something along the lines of <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>. Setting it to UTF-8 would also be compatable with other languages outside of the european group. [please note: Im no expert or resource on the different encoding methods but this appears to be the problem] -- Dan Hardiker [dhardiker@staff.firstcreative.net] ADAM Software & Systems Engineer First Creative Ltd

« previous php.dev (#83590) next »