PHP utf8_encode() 函数

PHP 教程 · 2019-01-30 16:27:02

定义和用法

utf8_encode() 函数把 ISO-8859-1 字符串编码为 UTF-8。

Unicode 是全球标准,已经发展到能够通过每个字符/符号的唯一编码外加大量的符号来描述所有语言中的所有可能的字符。

不过,并不是总能可靠地在计算机之间传递 Unicode 字符。UTF-8 可用于在计算机之间传输 Unicode 字符。

如果成功,该函数则返回编码字符串。如果失败,则返回 FALSE。

语法


utf8_encode(string)


参数 描述
string 必需。规定要编码的字符串。

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Designing Data-Intensive Applications

Designing Data-Intensive Applications

Martin Kleppmann / O'Reilly Media / 2017-4-2 / USD 44.99

Data is at the center of many challenges in system design today. Difficult issues need to be figured out, such as scalability, consistency, reliability, efficiency, and maintainability. In addition, w......一起来看看 《Designing Data-Intensive Applications》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具