summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc10
1 files changed, 9 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index fb200de57..79428fa16 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -85,7 +85,15 @@ class rcube_html_page
function set_charset($charset)
{
+ global $MBSTRING;
$this->charset = $charset;
+ if ($MBSTRING&&function_exists( "mb_internal_encoding"))
+ {
+ if(!@mb_internal_encoding( $charset))
+ {
+ $MBSTRING = FALSE;
+ }
+ }
}
function get_charset()
@@ -1386,4 +1394,4 @@ function get_offset_time($offset_str, $factor=1)
}
-?> \ No newline at end of file
+?>