(PHP 4 >= 4.0.6, PHP 5, PHP 7)
mb_convert_encoding — ת���ַ��ı���
$str
, string $to_encoding
[, mixed $from_encoding
= mb_internal_encoding()
] ) : string
�� string ���� str
���ַ�����ӿ�ѡ�� from_encoding
ת���� to_encoding
��
������ string��
Example #1 mb_convert_encoding() ����
<?php
/* ת���ڲ�����Ϊ SJIS */
$str = mb_convert_encoding($str, "SJIS");
/* �� EUC-JP ת���� UTF-7 */
$str = mb_convert_encoding($str, "UTF-7", "EUC-JP");
/* �� JIS, eucjp-win, sjis-win ���Զ������룬��ת�� str �� UCS-2LE */
$str = mb_convert_encoding($str, "UCS-2LE", "JIS, eucjp-win, sjis-win");
/* "auto" ��չ�� "ASCII,JIS,UTF-8,EUC-JP,SJIS" */
$str = mb_convert_encoding($str, "EUC-JP", "auto");
?>