<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
		<title>香港中文大學學生會計算機科學系會</title> 
		<atom:link href="http://appsrv.cse.cuhk.edu.hk/~cscs/feed/" rel="self" type="application/rss+xml" />
		<link>http://appsrv.cse.cuhk.edu.hk/~cscs</link>
<description>中大計科系會資訊</description>
<?
while($item = mysql_fetch_assoc($result)){
	$newline = array(chr(10), chr(13), '<br><br>');
    $item['content'] = str_replace($newline, '<br>', $item['content']);
	$item['content'] = iconv('UTF-8', 'UTF-8//IGNORE', $item['content']);
	//$item['content'] = big5_utf8_encode($item['content']);
echo "\t<item>\n";
echo "\t\t<title>".$item["title"]."</title>\n";
echo "\t\t<link>http://appsrv.cse.cuhk.edu.hk/~cscs/post-".$item['news_id'].".html</link>\n";
echo "\t\t<pubDate>".dateInRSSFormat(strtotime($item["added_date"]))."</pubDate>\n";
echo "\t\t<dc:creator><![CDATA[香港中文大學學生會計算機科學系會]]></dc:creator>\n";
echo "\t\t<category><![CDATA[".$tagName[$item["tag"]]."]]></category>\n";
echo "\t\t<guid isPermaLink=\"false\">http://appsrv.cse.cuhk.edu.hk/~cscs/post-".$item["news_id"].".html</guid>\n";
echo "\t\t<description><![CDATA[".$item["content"]."]]></description>\n";
echo "\t\t<content:encoded><![CDATA[".$item["content"]."]]></content:encoded>\n";
echo "\t</item>\n\n";
}
echo "</channel></rss>";
?>
