Update of /cvsroot/php-blog/serendipity/bundled-libs/Onyx
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26436/bundled-libs/Onyx
Modified Files:
RSS.php
Log Message:
Use proper encoding for RSS feeds
Index: RSS.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/bundled-libs/Onyx/RSS.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- RSS.php 2 Dec 2004 10:54:30 -0000 1.3
+++ RSS.php 2 Jan 2005 15:20:17 -0000 1.4
@@ -81,6 +81,7 @@
}
xml_set_object($this->parser, $this);
xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, false);
+ xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, LANG_CHARSET);
xml_set_element_handler($this->parser, 'tag_open', 'tag_close');
xml_set_character_data_handler($this->parser, 'cdata');
}
@@ -213,7 +214,7 @@
break;
case 'item':
(!isset($this->data['items'][$this->rss['index']-1][$this->rss['current_tag']]) ||
- !strlen($this->data['items'][$this->rss['index']-1][$this->rss['current_tag']])) ?
+ !strlen($this->data['items'][$this->rss['index']-1][$this->rss['current_tag']])) ?
$this->data['items'][$this->rss['index']-1][$this->rss['current_tag']] = $cdata :
$this->data['items'][$this->rss['index']-1][$this->rss['current_tag']].= $cdata;
break;
|