OSDN Git Service

removed upgrades folder, please refer utf-8's one.
[nucleus-jp/nucleus-jp-ancient.git] / euc / atom.php
index 7d569b2..a09fede 100755 (executable)
@@ -2,7 +2,7 @@
 \r
 /**\r
   * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) \r
-  * Copyright (C) 2002-2004 The Nucleus Group\r
+  * Copyright (C) 2002-2005 The Nucleus Group\r
   *\r
   * This program is free software; you can redistribute it and/or\r
   * modify it under the terms of the GNU General Public License\r
@@ -38,6 +38,8 @@ if (!$CONF['DisableSite']) {
                header("HTTP/1.0 304 Not Modified");\r
                header('Content-Length: 0');\r
        } else {\r
+               $feed = mb_convert_encoding($feed, "UTF-8", "EUC-JP");\r
+               header("Content-Type: application/xml");\r
                // dump feed\r
                echo $feed;\r
        }\r