|
From: Jon O. <jon...@us...> - 2008-06-23 20:22:27
|
Update of /cvsroot/mxbb/mx_ggsitemaps_adv/includes/utf/data In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22648/data Added Files: recode_basic.php recode_cjk.php Log Message: I've added the full featured ggsitemaps module as mx_ggsitemaps_adv --- NEW FILE: recode_basic.php --- <?php if ( !defined('IN_PHPBB') && !defined('IN_PORTAL') ) { die('Hacking attempt'); exit; } function iso_8859_1($string) { return utf8_encode($string); } function iso_8859_2($string) { static $transform = array( "\x80" => "\xC2\x80", "\x81" => "\xC2\x81", "\x82" => "\xC2\x82", "\x83" => "\xC2\x83", "\x84" => "\xC2\x84", "\x85" => "\xC2\x85", [...1305 lines suppressed...] "\xF1" => "\xC5\x84", "\xF2" => "\xC5\x86", "\xF3" => "\xC3\xB3", "\xF4" => "\xC5\x8D", "\xF5" => "\xC3\xB5", "\xF6" => "\xC3\xB6", "\xF7" => "\xC3\xB7", "\xF8" => "\xC5\xB3", "\xF9" => "\xC5\x82", "\xFA" => "\xC5\x9B", "\xFB" => "\xC5\xAB", "\xFC" => "\xC3\xBC", "\xFD" => "\xC5\xBC", "\xFE" => "\xC5\xBE", "\xFF" => "\xCB\x99", ); return strtr($string, $transform); } ?> --- NEW FILE: recode_cjk.php --- <?php // Not inluded within the standard distribution if ( !defined('IN_PHPBB') && !defined('IN_PORTAL') ) { die('Hacking attempt'); exit; } function gb2312($string) { static $transform = array( "\xA1\xA1" => "\xE3\x80\x80", "\xA1\xA2" => "\xE3\x80\x81", "\xA1\xA3" => "\xE3\x80\x82", "\xA1\xA4" => "\xE3\x83\xBB", "\xA1\xA5" => "\xCB\x89", "\xA1\xA6" => "\xCB\x87", "\xA1\xA7" => "\xC2\xA8", "\xA1\xA8" => "\xE3\x80\x83", "\xA1\xA9" => "\xE3\x80\x85", "\xA1\xAA" => "\xE2\x80\x95", [...45143 lines suppressed...] "\xF9\xC7" => "\xE8\x99\x8B", "\xF9\xC8" => "\xE8\xAE\x9F", "\xF9\xC9" => "\xE9\x92\x83", "\xF9\xCA" => "\xE9\xB1\xB9", "\xF9\xCB" => "\xE9\xBA\xB7", "\xF9\xCC" => "\xE7\x99\xB5", "\xF9\xCD" => "\xE9\xA9\xAB", "\xF9\xCE" => "\xE9\xB1\xBA", "\xF9\xCF" => "\xE9\xB8\x9D", "\xF9\xD0" => "\xE7\x81\xA9", "\xF9\xD1" => "\xE7\x81\xAA", "\xF9\xD2" => "\xE9\xBA\xA4", "\xF9\xD3" => "\xE9\xBD\xBE", "\xF9\xD4" => "\xE9\xBD\x89", "\xF9\xD5" => "\xE9\xBE\x98", ); return strtr($string, $transform); } ?> |