Forum Moderators: open
<HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/xml; charset=UTF-8"></HEAD>
<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="word/1.5.2" -->
<rss version="2.0">
<channel>
<title>The title</title>
<link>http:-/www.url.com</link>
<description>The description.</description>
<generator>URL</generator>
<item>
<title>Title text</title>
</item>
</channel>
</rss>
<?
header("Content-type: text/xml");
?>
<!-- generator="wordpress/1.5.2" -->
<rss version="2.0">
<channel>
<title>title</title>
<link>http-//url.com/blog</link>
<description>Description</description>
<generator>http-://url.org/</generator>
<item>
<title>title</title>
</item>
</channel>
</rss>
Just need to figure out how to use
<HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/xml; charset=UTF-8"></HEAD>
to turn a file in to text/xml
application/rss+xml rather than the older text/xml for the feed. For the charset, the default for XML is UTF-8 (and you have declared it in the XML prolog anyway) but you can define UTF-8 specifically with a header like this: <?php
header("Content-type: [b]application/rss+xml; charset=UTF-8[/b]");
?>