Do I need to set ini_set( 'default_charset', 'UTF-8' );?

后端 未结 4 1379
暗喜
暗喜 2020-12-30 09:53

My framework for each pages does the follow:

ini_set(\'mbstring.internal_encoding\',\'UTF-8\');
ini_set(\'mbstring.func_overload\',7);
header(\'Content-Type:         


        
4条回答
  •  余生分开走
    2020-12-30 10:32

    Please see https://bugs.php.net/bug.php?id=29983 looks to me like some distros still have the problem

    test case

    echo "ini_get('default_charset') ". ini_get('default_charset')."
    "; if (!ini_set('default_charset', 'utf-8')) { echo "could not set default_charset to utf-8
    "; }

提交回复
热议问题