OSDN Git Service
(root)
/
nucleus-jp
/
nucleus-jp-ancient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Revision 1119, related to mb_emurator loading.
[nucleus-jp/nucleus-jp-ancient.git]
/
utf8
/
xml-rss2.php
diff --git
a/utf8/xml-rss2.php
b/utf8/xml-rss2.php
index
a3a0857
..
8ef8924
100755
(executable)
--- a/
utf8/xml-rss2.php
+++ b/
utf8/xml-rss2.php
@@
-2,7
+2,7
@@
/*
* Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
/*
* Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-20
07
The Nucleus Group
+ * Copyright (C) 2002-20
10
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
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@
-14,8
+14,8
@@
/**
* Nucleus RSS syndication channel skin
* @license http://nucleuscms.org/license.txt GNU General Public License
/**
* Nucleus RSS syndication channel skin
* @license http://nucleuscms.org/license.txt GNU General Public License
- * @copyright Copyright (C) 2002-20
07
The Nucleus Group
- * @version $Id
: xml-rss2.php,v 1.8 2007-02-04 06:28:44 kimitake Exp
$
+ * @copyright Copyright (C) 2002-20
10
The Nucleus Group
+ * @version $Id$
* $NucleusJP: xml-rss2.php,v 1.7 2006/07/17 19:59:46 kimitake Exp $
*/
* $NucleusJP: xml-rss2.php,v 1.7 2006/07/17 19:59:46 kimitake Exp $
*/
@@
-45,6
+45,9
@@
if (!$CONF['DisableSite']) {
header('HTTP/1.0 304 Not Modified');
header('Content-Length: 0');
} else {
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;
header("Content-Type: application/xml");
// dump feed
echo $feed;