Converts the character encoding of string str to to_encoding from optionally from_encoding.
需要注意的是,from_encoding的查找顺序是逆向的。
例如:mb_convert_encoding($str, 'UTF-8');的具体执行过程如下:
首先,如果能将$str从SJIS成功转码为UTF-8,则转码
否则,如果能将$str从EUC-JP成功转码为UTF-8,则转码,
....