<?php
/*
* Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2009 The Nucleus Group
+ * Copyright (C) 2002-2011 The Nucleus Group
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
/**
* Nucleus Atom Syndication
* @license http://nucleuscms.org/license.txt GNU General Public License
- * @copyright Copyright (C) 2002-2009 The Nucleus Group
- * @version $Id: atom.php,v 1.7 2007-02-04 06:28:44 kimitake Exp $
+ * @copyright Copyright (C) 2002-2011 The Nucleus Group
+ * @version $Id$
* $NucleusJP: atom.php,v 1.6 2006/07/12 07:11:45 kimitake Exp $
*/
header('HTTP/1.0 304 Not Modified');
header('Content-Length: 0');
} else {
+ if (strtolower(_CHARSET) != 'utf-8') {
+ $feed = mb_convert_encoding($feed, "UTF-8", _CHARSET);
+ }
header("Content-Type: application/xml");
// dump feed
echo $feed;