Permalink
Browse files

Merge pull request #14 from catoc/0.7.x

 use decodeURIComponent() instead of unescape() to support multibyte data
  • Loading branch information...
2 parents f3c43a3 + 171bbdd commit bc2d2de4321027ca1a8a844997e2d59b8a9d27a0 Simeon Bateman committed Apr 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/pnwrain/flashsocket/FlashSocket.as
@@ -193,7 +193,7 @@ package com.pnwrain.flashsocket
if ( data.type == "message" ){
this._setTimeout();
- var msg:String = unescape(data.data);
+ var msg:String = decodeURIComponent(data.data);
if (msg){
this._onMessage(msg);
}

0 comments on commit bc2d2de

Please sign in to comment.