php mb_convert_encoding文字编码转换函数
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Libérer: 2016-07-25 08:53:41
original
1009 Les gens l'ont consulté
-
-
$str='脚本学堂:http://bbs.it-home.org';
- echo mb_convert_encoding($str, "utf-8"); //编码转换为utf-8
$str='程序员之家:http://bbs.it-home.org';
- echo mb_convert_encoding($str, "utf-8", "gbk"); //已知原编码为gbk,转换为utf-8
$str='程序员之家:http://bbs.it-home.org';
- echo mb_convert_encoding($str, "utf-8", "auto"); //未知原编码,通过auto自动检测后,转换编码为utf-8
- ?>
-
复制代码
|
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Derniers articles par auteur
-
2025-02-26 03:58:14
-
2025-02-26 03:38:10
-
2025-02-26 03:17:10
-
2025-02-26 02:49:09
-
2025-02-26 01:08:13
-
2025-02-26 00:46:10
-
2025-02-25 23:42:08
-
2025-02-25 22:50:13
-
2025-02-25 21:54:11
-
2025-02-25 20:45:11