From: <var...@us...> - 2015-02-18 15:47:07
|
Revision: 9547 http://sourceforge.net/p/phpwiki/code/9547 Author: vargenau Date: 2015-02-18 15:46:57 +0000 (Wed, 18 Feb 2015) Log Message: ----------- RSS_ENCODING is UTF-8 Modified Paths: -------------- trunk/lib/RSSWriter091.php trunk/lib/RssWriter.php trunk/lib/RssWriter2.php Modified: trunk/lib/RSSWriter091.php =================================================================== --- trunk/lib/RSSWriter091.php 2015-02-18 15:34:57 UTC (rev 9546) +++ trunk/lib/RSSWriter091.php 2015-02-18 15:46:57 UTC (rev 9547) @@ -64,8 +64,8 @@ */ function __spew() { - header("Content-Type: application/xml; charset=" . RSS_ENCODING); - printf("<?xml version=\"1.0\" encoding=\"%s\"?>\n", RSS_ENCODING); + header("Content-Type: application/xml; charset=UTF-8"); + print("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"); print("<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n"); print("\"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n"); $this->printXML(); Modified: trunk/lib/RssWriter.php =================================================================== --- trunk/lib/RssWriter.php 2015-02-18 15:34:57 UTC (rev 9546) +++ trunk/lib/RssWriter.php 2015-02-18 15:46:57 UTC (rev 9547) @@ -124,8 +124,8 @@ */ function __spew() { - header("Content-Type: application/xml; charset=" . RSS_ENCODING); - echo('<' . '?xml version="1.0" encoding="' . RSS_ENCODING . '"?' . ">\n"); + header("Content-Type: application/xml; charset=UTF-8"); + echo('<' . '?xml version="1.0" encoding="UTF-8" ?' . ">\n"); $this->printXML(); } Modified: trunk/lib/RssWriter2.php =================================================================== --- trunk/lib/RssWriter2.php 2015-02-18 15:34:57 UTC (rev 9546) +++ trunk/lib/RssWriter2.php 2015-02-18 15:46:57 UTC (rev 9547) @@ -66,8 +66,8 @@ */ function __spew() { - header("Content-Type: application/rss+xml; charset=" . RSS_ENCODING); - echo('<' . '?xml version="1.0" encoding="' . RSS_ENCODING . '"?' . ">\n"); + header("Content-Type: application/rss+xml; charset=UTF-8"); + echo('<' . '?xml version="1.0" encoding="UTF-8" ?' . ">\n"); //RSS2 really is 0.92 echo '<!DOCTYPE rss SYSTEM "http://my.netscape.com/publish/formats/rss-0.92.dtd">', "\n"; echo "<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC \"-//W3C//ENTITIES Latin 1 for XHTML//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent\">\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |