diff options
author | David M <davidmj@users.sourceforge.net> | 2007-01-31 21:20:17 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-01-31 21:20:17 +0000 |
commit | 6ec09e6f74abce923cc409cd5473790f3221ffd8 (patch) | |
tree | 8f851cef7e7bd15c77562dc907589fc50ae3275f /phpBB/includes/utf/data | |
parent | 49470a87c3a248507d1e098d638cbbaa7f31b8d2 (diff) | |
download | forums-6ec09e6f74abce923cc409cd5473790f3221ffd8.tar forums-6ec09e6f74abce923cc409cd5473790f3221ffd8.tar.gz forums-6ec09e6f74abce923cc409cd5473790f3221ffd8.tar.bz2 forums-6ec09e6f74abce923cc409cd5473790f3221ffd8.tar.xz forums-6ec09e6f74abce923cc409cd5473790f3221ffd8.zip |
#7474
#7308
git-svn-id: file:///svn/phpbb/trunk@6952 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/utf/data')
-rw-r--r-- | phpBB/includes/utf/data/recode_basic.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/phpBB/includes/utf/data/recode_basic.php b/phpBB/includes/utf/data/recode_basic.php index 8950b0550b..fe29e3ddb9 100644 --- a/phpBB/includes/utf/data/recode_basic.php +++ b/phpBB/includes/utf/data/recode_basic.php @@ -929,6 +929,40 @@ function cp1251($string) return strtr($string, $transform); } +function cp1252($string) +{ + static $transform = array( + "\xC2\x80" => "\xE2\x82\xAC", + "\xC2\x82" => "\xE2\x80\x9A", + "\xC2\x83" => "\xC6\x92", + "\xC2\x84" => "\xE2\x80\x9E", + "\xC2\x85" => "\xE2\x80\xA6", + "\xC2\x86" => "\xE2\x80\xA0", + "\xC2\x87" => "\xE2\x80\xA1", + "\xC2\x88" => "\xCB\x86", + "\xC2\x89" => "\xE2\x80\xB0", + "\xC2\x8A" => "\xC5\xA0", + "\xC2\x8B" => "\xE2\x80\xB9", + "\xC2\x8C" => "\xC5\x92", + "\xC2\x8E" => "\xC5\xBD", + "\xC2\x91" => "\xE2\x80\x98", + "\xC2\x92" => "\xE2\x80\x99", + "\xC2\x93" => "\xE2\x80\x9C", + "\xC2\x94" => "\xE2\x80\x9D", + "\xC2\x95" => "\xE2\x80\xA2", + "\xC2\x96" => "\xE2\x80\x93", + "\xC2\x97" => "\xE2\x80\x94", + "\xC2\x98" => "\xCB\x9C", + "\xC2\x99" => "\xE2\x84\xA2", + "\xC2\x9A" => "\xC5\xA1", + "\xC2\x9B" => "\xE2\x80\xBA", + "\xC2\x9C" => "\xC5\x93", + "\xC2\x9E" => "\xC5\xBE", + "\xC2\x9F" => "\xC5\xB8" + ); + return strtr(utf8_encode($string), $transform); +} + function cp1254($string) { static $tranform = array( |