We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dc6af8 commit fdc1ba2Copy full SHA for fdc1ba2
lang/setlang.php
@@ -18,17 +18,16 @@
18
setlocale(LC_ALL, 'en_US');
19
} else if ('zh-tw' == $lang) {
20
putenv('LANG=zh_TW');
21
- setlocale(LC_ALL, 'zh_TW'); // bsd use zh_TW.BIG5
22
- header('Content-type: text/html; charset=big5');
+ setlocale(LC_ALL, 'zh_TW');
23
} else if ('zh-cn' == $lang) {
24
putenv('LANG=zh_CN');
25
- setlocale(LC_ALL, 'zh_CN'); // bsd use zh_CN.GBK
26
- header('Content-type: text/html; charset=gbk');
+ setlocale(LC_ALL, 'zh_CN');
27
}
28
29
define('PACKAGE', 'demo');
30
31
// gettext 設定
32
bindtextdomain(PACKAGE, 'lang'); // or $your_path/lang, ex: /var/www/test/lang
33
textdomain(PACKAGE);
+bind_textdomain_codeset (PACKAGE, "utf-8");
34
?>
0 commit comments