怎么把gb2312的字符串转成utf8编码的?

怎么把gb2312的字符串转成utf8编码的?

怎么把gb2312的字符串转成utf8编码的?
encode("utf8", decode("gb2312", $str));