Improve base64 decode and utf8 handling

This commit is contained in:
Shuanglei Tao
2017-02-03 11:23:59 +08:00
parent de75490d3e
commit f0414d30d8
7 changed files with 129 additions and 7 deletions

View File

@@ -52,7 +52,7 @@
var data = event.data.slice(1);
switch(event.data[0]) {
case '0':
term.write(decodeURIComponent(escape(window.atob(data))));
term.writeUTF8(window.atob(data));
break;
case '1': // pong
break;