mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 03:09:44 +02:00
fix(console): use writeUtf8 instead of environment variables EE-6593 (#11019)
This commit is contained in:
parent
249b6bc628
commit
b640b58371
3 changed files with 19 additions and 30 deletions
|
@ -183,9 +183,6 @@ angular.module('portainer.docker').controller('ContainerConsoleController', [
|
|||
socket.onopen = function () {
|
||||
$scope.state = states.connected;
|
||||
term = new Terminal();
|
||||
socket.send('export LANG=C.UTF-8\n');
|
||||
socket.send('export LC_ALL=C.UTF-8\n');
|
||||
socket.send('clear\n');
|
||||
|
||||
term.onData(function (data) {
|
||||
socket.send(data);
|
||||
|
@ -205,7 +202,8 @@ angular.module('portainer.docker').controller('ContainerConsoleController', [
|
|||
});
|
||||
|
||||
socket.onmessage = function (e) {
|
||||
term.write(e.data);
|
||||
var encoded = new TextEncoder().encode(e.data);
|
||||
term.writeUtf8(encoded);
|
||||
};
|
||||
socket.onerror = function (err) {
|
||||
$scope.disconnect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue