Skip to content

Instantly share code, notes, and snippets.

@naneau
Created September 1, 2010 13:25
Show Gist options
  • Save naneau/560671 to your computer and use it in GitHub Desktop.
Save naneau/560671 to your computer and use it in GitHub Desktop.
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