aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/utf/data/recode_basic.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/utf/data/recode_basic.php')
-rw-r--r--phpBB/includes/utf/data/recode_basic.php34
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(