diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-11 21:57:54 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-11 21:57:54 +0000 |
commit | 00aba1bbcc50f1190c5694791d58276f96188cff (patch) | |
tree | b1b9d538c1ea70b621693afaff2d5e0d9282634e /engine/lib/mb_wrapper.php | |
parent | de0149375cdb6f6667adfe3f83b0f99d8c94b855 (diff) | |
download | elgg-00aba1bbcc50f1190c5694791d58276f96188cff.tar.gz elgg-00aba1bbcc50f1190c5694791d58276f96188cff.tar.bz2 |
Fixes #1501: Setting ini for mbstring.internal_encoding to utf8 to work around a PHP bug. Replaced calls to parse_str() with elgg_parse_str().
git-svn-id: http://code.elgg.org/elgg/trunk@3932 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/mb_wrapper.php')
-rw-r--r-- | engine/lib/mb_wrapper.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/mb_wrapper.php b/engine/lib/mb_wrapper.php index 8695f038c..8bd9ddb8b 100644 --- a/engine/lib/mb_wrapper.php +++ b/engine/lib/mb_wrapper.php @@ -3,6 +3,7 @@ // if mb functions are available, set internal encoding to UTF8 if (is_callable('mb_internal_encoding')) { mb_internal_encoding("UTF-8"); + ini_set("mbstring.internal_encoding", 'UTF-8'); } // map string functions to their mb_str_func alternatives |