本文介绍了默认的mb_internal_encoding()值从何而来?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我要编写一个新的php文件并包含echo "current mb_internal_encoding: ".mb_internal_encoding(),那么输出值将从何而来?如何决定"/如何治理?

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?

背景:我写了一个Web应用程序,我以为自己已经做了一切将整个网站设置为utf-8的操作,发现我仍然需要手动设置该值...

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...

推荐答案

这取决于 php.ini中的mbstring.internal_encoding .

这篇关于默认的mb_internal_encoding()值从何而来?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-23 22:50