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

后端 未结 4 1356
暗喜
暗喜 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:27

    default_charset ini setting should work for you. PHP always outputs a character encoding by default in the Content-type: header using this setting

提交回复
热议问题