Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does the default mb_internal_encoding() value come from?

If I were to write a new php file, and include echo "current mb_internal_encoding: ".mb_internal_encoding() , where would the output value come from? How is it "decided" / how is it governed?

Background: I wrote a web app where I thought I had done everything to set the whole site to utf-8 and found that I still needed to set this value manually...

like image 935
JDelage Avatar asked Feb 24 '12 03:02

JDelage


1 Answers

It depends on the setting of mbstring.internal_encoding in php.ini.

like image 163
deceze Avatar answered Nov 14 '22 00:11

deceze