Created
September 1, 2010 13:25
-
-
Save naneau/560671 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!extension_loaded('mbstring')) { | |
throw new Exception('"mbstring" extension not loaded, ABC5 requires mbstring to work correctly'); | |
} | |
setlocale(LC_ALL, 'nl_NL.UTF-8'); | |
mb_internal_encoding('UTF-8'); | |
mb_http_output('UTF-8'); | |
mb_http_input('UTF-8'); | |
ini_set('mbstring.func_overload', 7); | |
ini_set('mbstring.http_input', 'UTF-8'); | |
ini_set('mbstring.http_output', 'UTF-8'); | |
ini_set('mbstring.internal_encoding', 'UTF-8'); | |
//use unicode internally | |
$detectOrder[] = "UTF-8"; | |
$detectOrder[] = "ASCII"; | |
mb_detect_order($detectOrder); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment