Index: openacs-4/packages/xowiki/www/ajax/scripted-streaming-chat.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/ajax/Attic/scripted-streaming-chat.js,v diff -u -N -r1.4 -r1.5 --- openacs-4/packages/xowiki/www/ajax/scripted-streaming-chat.js 17 Feb 2013 11:48:06 -0000 1.4 +++ openacs-4/packages/xowiki/www/ajax/scripted-streaming-chat.js 7 Aug 2017 23:48:31 -0000 1.5 @@ -20,7 +20,7 @@ p.appendChild(span); span = document.createElement('span'); - span.innerHTML = decodeURI(unescape(data.messages[i].msg)); + span.innerHTML = data.messages[i].msg; span.className = 'message'; p.appendChild(span); @@ -32,14 +32,14 @@ function chatSendMsg() { var msg = document.getElementById('chatMsg').value; if (msg == '') { return; } - http_send.open('GET', send_url + encodeURIComponent(escape(msg)), true); + http_send.open('GET', send_url + encodeURIComponent(msg), true); http_send.onreadystatechange = function() { - if (http_send.readyState == 4) { - if (http_send.status != 200) { - alert('Something wrong in HTTP request, status code = ' + http_send.status); - } + if (http_send.readyState == 4) { + if (http_send.status != 200) { + alert('Something wrong in HTTP request, status code = ' + http_send.status); } + } }; http_send.send(null); document.getElementById('chatMsg').value = ''; -} \ No newline at end of file +}