编码问题,一般可以让后台把字符做一下编码 遍成utf8或者gb2312的 在回调给flash 或者flash来做转码工作。 你可以试试我写的这个转码方法:
输入的参数str就是webservice的返回结果 e.target.data 第二个是转码类型 默认值是gb2312
function encode(str:*,method:String="gb2312"):String
{
var byteArray:ByteArray = new ByteArray ;
byteArray.writeBytes(str);
byteArray.position = 0;
return byteArray.readMultiByte(byteArray.length,method);
}
温馨提示:答案为网友推荐,仅供参考