arraybuffer转字符串如何解决中文乱码问题?
this.data.socket = wx.createUDPSocket()
this.data.socket.onMessage(function(res){
console.log(res)
var unit8Array = new Uint8Array(res['message'])
let encodeString = String.fromCharCode.apply(null, unit8Array)
encodeString = encodeString.replace(/%/g,'%25')
var data = decodeURIComponent(escape(encodeString))
console.log('接收到:',data)
})