mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +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
|
@ -75,14 +75,12 @@ export function ConsoleView() {
|
|||
terminal?.setOption('cursorBlink', true);
|
||||
terminal?.focus();
|
||||
setConnectionStatus('open');
|
||||
socket.send('export LANG=C.UTF-8\n');
|
||||
socket.send('export LC_ALL=C.UTF-8\n');
|
||||
socket.send('clear\n');
|
||||
}
|
||||
};
|
||||
|
||||
socket.onmessage = (msg) => {
|
||||
terminal?.write(msg.data);
|
||||
const encoded = new TextEncoder().encode(msg.data);
|
||||
terminal?.writeUtf8(encoded);
|
||||
};
|
||||
|
||||
socket.onerror = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue