From ed6e6c94350a62572627d3d632ddb873348f8127 Mon Sep 17 00:00:00 2001 From: zeird Date: Sun, 14 Feb 2016 05:26:53 +0600 Subject: [PATCH] Add ISO-8859-1 to UTF-8 encoding before frame parsing --- data/view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/view.js b/data/view.js index a1a1020..fef0932 100644 --- a/data/view.js +++ b/data/view.js @@ -86,7 +86,7 @@ var WebSocketsView = createView(PanelView, * about the mapping event -> method. */ frameReceived: function(frame) { - frame = JSON.parse(frame); + frame = JSON.parse(decodeURIComponent(escape(frame))); frame.received = true; frame.type = "frame"; frame.data.webSocketSerialID = frame.webSocketSerialID; @@ -95,7 +95,7 @@ var WebSocketsView = createView(PanelView, }, frameSent: function(frame) { - frame = JSON.parse(frame); + frame = JSON.parse(decodeURIComponent(escape(frame))); frame.sent = true; frame.type = "frame"; frame.data.webSocketSerialID = frame.webSocketSerialID;