diff options
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 306d2105e..936cad388 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -261,16 +261,22 @@ function load_gui() // set localization charset based on the given language function rcmail_set_locale($lang) { - global $OUTPUT, $INSTLL_PATH; + global $OUTPUT, $INSTLL_PATH, $CHARSET; static $rcube_charsets; if (!$rcube_charsets) @include($INSTLL_PATH.'program/localization/index.inc'); if (isset($rcube_charsets[$lang])) + { $OUTPUT->set_charset($rcube_charsets[$lang]); + $CHARSET = $rcube_charsets[$lang]; + } else + { $OUTPUT->set_charset('ISO-8859-1'); + $CHARSET = 'ISO-8859-1'; + } } |