mb_detect_encoding mb_convert_encoding and rss
| From: | Tony Laszlo | Date: | Tue, 21 Jan 2003 18:26:47 +0000 |
| Subject: | mb_detect_encoding mb_convert_encoding and rss | ||
| Groups: | php.i18n | ||
| Request: | Send a blank email to php-i18n+get-418@lists.php.net to get a copy of this message | ||
In Xoops, modules/headlines/blocks/headlines.php ,
right around:
$synd = new RSStoHTML($headlinesurl, $cache_dir,
$cache_file, $cache_time, $max_items);
$block['content'] .=
"<b>".$synd->getTitle()."</b><br />";
$block['content'] .= $synd->getHtml();
(I think)
mb_convert_encoding and mb_detect_encoding are
being inserted more or less as follows:
$str = mb_convert_encoding($str,"encoding1","encoding2");
and
mb_detect_order("encoding1,encoding2");
$ary[] = "encoding1";
$ary[] = "encoding2";
mb_detect_order($ary);
I needs to use the above sort of lines
to convert rss feeds of _all_ possible
encodings and to one encoding: utf-8 .
I am doing this in postnuke, however,
and don't know where to insert this
code.
I suspect it would be /includes/pnAPI.php
and/or
/includes/blocks/rss.php
I have some notes and code related to
this up at:
http://www.issho.org/modules.php?op=modload&name=DB_phpBB2&file=viewtopic&p=56#56
Any ideas would be very much appreciated.
Thanks.
Tony Laszlo
http://www.issho.org/laszlo.html