Revision 495
Added by Matthias over 17 years ago
rss.php | ||
---|---|---|
45 | 45 |
$wb->get_page_details(); |
46 | 46 |
$wb->get_website_settings(); |
47 | 47 |
|
48 |
//checkout if a charset is defined otherwise use UTF-8 |
|
49 |
if(defined('DEFAULT_CHARSET')) { |
|
50 |
$charset=DEFAULT_CHARSET; |
|
51 |
} else { |
|
52 |
$charset='utf-8'; |
|
53 |
} |
|
54 |
|
|
48 | 55 |
// Sending XML header |
49 |
header("Content-type: text/xml; charset=utf-8" );
|
|
56 |
header("Content-type: text/xml; charset=$charset" );
|
|
50 | 57 |
|
51 | 58 |
// Header info |
52 | 59 |
// Required by CSS 2.0 |
53 |
?> |
|
54 |
<rss version="2.0" > |
|
60 |
echo '<?xml version="1.0" encoding="'.$charset.'"?>'; |
|
61 |
?> |
|
62 |
<rss version="2.0"> |
|
55 | 63 |
<channel> |
56 | 64 |
<title><?php echo PAGE_TITLE; ?></title> |
57 | 65 |
<link>http://<?php echo $_SERVER['SERVER_NAME']; ?></link> |
Also available in: Unified diff
fixed issue with special chars in news feed