在PHP中使用Utf-16BE到ISO-8859-1

时间:2010-03-16 09:17:31

标签: php encoding utf-16

我需要在PHP中转换ISO-8859-1中的Utf-16BE(我不是编码专家所以我不知道Utf-16和Utf-16BE是否相同)。我已经读过某个地方使用mb_convert_encoding函数,但我没有那个功能,因为我没有安装多字节扩展。所以你知道另一种方法吗?

1 个答案:

答案 0 :(得分:3)

还有iconv module公开string iconv ( string $in_charset , string $out_charset , string $str )功能 你真的不想自己编码转换,使用这两个模块中的一个。