PHP utf8_encode() 函数

定义和用法
utf8_encode() 函数把 ISO-8859-1 字符串编码为 UTF-8。
Unicode 是全球标准,已经发展到能够通过每个字符/符号的唯一编码外加大量的符号来描述所有语言中的所有可能的字符。
不过,并不是总能可靠地在计算机之间传递 Unicode 字符。UTF-8 可用于在计算机之间传输 Unicode 字符。
如果成功,该函数则返回编码字符串。如果失败,则返回 FALSE。
语法
utf8_encode(string)
参数 | 描述 |
---|---|
string | 必需。规定要编码的字符串。 |
