4
headlinerenderer.php added to this Korean language pack!!
( html/modules/xoopsheadline/language/korean/headlinerenderer.php )
As you(familiar with Korea) know,
most Korean sites generally use EUC-KR encoding as the encoding method of RSS/XML Newsfeed.
so if you don't customize convertFromUtf8(), convertToUtf8(), Xoopsheadline module can't display Korean RSS/XML Newsfeed properly.
I think this file can solve such trouble.
(as you know, iconv module needed if you don't use PHP5.)
Read this link =>
http://www.php.net/manual/en/ref.iconv.phple="color: #000000"><?php if (function_exists('iconv')) { class XoopsHeadlineRendererLocal extends XoopsHeadlineRenderer { function convertFromUtf8(&$value, $key) { $value = is_string($value) ? @iconv("UTF-8","EUC-KR",$value): $value; } function &convertToUtf8(&$xmlfile) { if (preg_match("/^<?xml .* encoding=(['"]?)(euc-kr|euckr)\1/i", $xmlfile)) { $xmlfile = @iconv("UHC", "UTF-8",preg_replace("/ encoding=(['"]?)(euc-kr|euckr)\1/i", ' encoding="utf-8"', $xmlfile)); } return $xmlfile; } } }
If you have never seen this message before,
please redownload this language pack!
http://www.wanisys.net/data/xoops-2.0.9-lang-kr-euckrdiff.zipDemo ( XOOPS Korean Unofficial Site --;; just started ):
http://www.wanisys.net/xoops/korean/index.php Newsfeed Demo( Yahoo Korea Newsfeed ):
http://kjw0815.codns.com/wanisys/korean/xoops/html/modules/xoopsheadline/index.php?id=2From wanikoo (
wani@wanisys.net )