ini_set('mbstring.internal_encoding','UTF-8') [英] ini_set('mbstring.internal_encoding','UTF-8')

查看:189
本文介绍了ini_set('mbstring.internal_encoding','UTF-8')的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ini_set('mbstring.internal_encoding','UTF-8')

这在php文件的开头表示什么,它的作用是什么?

what does this signify at the beginning of a php file and what is it used for ?

我知道有一个php手册,但是它没有用普通的普通人的语言来解释它.

I know that a php manual exists but it does not explain it in plain common man's language.

推荐答案

它将默认的内部字符编码定义为UTF-8字符集类型.

It defines the default internal character encoding to UTF-8 character set type.

这用于通过更改mbstring.internal_encoding值来使网站成为多语言网站.

This is used to make a site multilingual by changing the mbstring.internal_encoding value.

encoding是用于HTTP输入的字符编码名称 字符编码转换,HTTP输出字符编码 转换,以及字符串函数的默认字符编码 由mbstring模块定义.您应注意,内部 编码与多字节正则表达式完全不同.

encoding is the character encoding name used for the HTTP input character encoding conversion, HTTP output character encoding conversion, and the default character encoding for string functions defined by the mbstring module. You should notice that the internal encoding is totally different from the one for multibyte regex.

UTF-8(8位Unicode转换格式)是Unicode的变长字符编码.

And UTF-8 (8-bit Unicode Transformation Format) is a variable-length character encoding for Unicode.

您可以使用iso-8859-1UTF-8等更改它.

You can change it using the iso-8859-1, UTF-8, etc.

这是 Unicode字符列表的列表.

这篇关于ini_set('mbstring.internal_encoding','UTF-8')的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆