diff options
author | Michael Tänzer <neo@nhng.de> | 2011-02-03 01:54:32 +0100 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2011-02-03 01:54:32 +0100 |
commit | 19d2883e7a8f480d82e9684f6bd619cb1dda4d8f (patch) | |
tree | 28746fac3614433793ba773ec5f9d98ced28e783 | |
parent | 4145a1e31cf13340b417299f8a1fc87a90978d9d (diff) | |
download | cacert-devel-bug-900.tar.gz cacert-devel-bug-900.tar.xz cacert-devel-bug-900.zip |
Bug 900: CAcert Site translationbug-900
Foreign character sets (i.e. everything except ISO-8859-1 aka latin1) were
broken this should fix it by explicitly set the character set in the HTTP
Content Type header
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r-- | includes/general.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/general.php b/includes/general.php index 5789875..add1779 100644 --- a/includes/general.php +++ b/includes/general.php @@ -166,14 +166,19 @@ if($_SESSION['_config']['language'] == "zh_CN") { $_SESSION['_config']['recode'] = "html..gb2312"; + header('Content-type: text/html; charset=gb2312'); } else if($_SESSION['_config']['language'] == "pl_PL" || $_SESSION['_config']['language'] == "hu_HU") { $_SESSION['_config']['recode'] = "html..ISO-8859-2"; + header('Content-type: text/html; charset=ISO-8859-2'); } else if($_SESSION['_config']['language'] == "ja_JP") { $_SESSION['_config']['recode'] = "html..SHIFT-JIS"; + header('Content-type: text/html; charset=SHIFT-JIS'); } else if($_SESSION['_config']['language'] == "ru_RU") { $_SESSION['_config']['recode'] = "html..ISO-8859-5"; + header('Content-type: text/html; charset=ISO-8859-5'); } else if($_SESSION['_config']['language'] == "lt_LT") { $_SESSION['_config']['recode'] = "html..ISO-8859-13"; + header('Content-type: text/html; charset=ISO-8859-13'); } putenv("LANG=".$_SESSION['_config']['language']); |