[GH-ISSUE #3276] 默认utf-8 编码失效,中文会乱码,必须右下角切换为其他编码再切回utf-8才生效 #2197

Open
opened 2026-02-27 00:06:28 +03:00 by kerem · 2 comments
Owner

Originally created by @S0uLHun43r on GitHub (Jan 31, 2024).
Original GitHub issue: https://github.com/electerm/electerm/issues/3276

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-1.38.8-win-x64-installer.exe

Platform detail (平台详情)

Linux ubuntu 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

What steps will reproduce the bug?(重新问题的详细步骤)

image
右下角切换为其他编码再切换为utf-8,或者重新选择一下utf-8,显示正常
image

What should have happened?(期望的结果)

默认情况下,utf-8编码生效,中文正常显示

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

xshell下显示正常。
image

Additional information(其他任何相关信息)

猜测有个原因是因为使用了堡垒机,堡垒机默认编码为gbk编码,但是虚机使用的utf-8,所以导致此情况。

Originally created by @S0uLHun43r on GitHub (Jan 31, 2024). Original GitHub issue: https://github.com/electerm/electerm/issues/3276 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-1.38.8-win-x64-installer.exe ### Platform detail (平台详情) Linux ubuntu 4.10.0-40-generic #44~16.04.1-Ubuntu SMP Thu Nov 9 15:37:44 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux ### What steps will reproduce the bug?(重新问题的详细步骤) ![image](https://github.com/electerm/electerm/assets/17557425/eecab695-8d5b-4fbf-a27b-1dcaad286b9f) 右下角切换为其他编码再切换为utf-8,或者重新选择一下utf-8,显示正常 ![image](https://github.com/electerm/electerm/assets/17557425/b85f171e-2b13-44dc-ac91-2d11dd83e92d) ### What should have happened?(期望的结果) 默认情况下,utf-8编码生效,中文正常显示 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) xshell下显示正常。 ![image](https://github.com/electerm/electerm/assets/17557425/ee82810f-da5c-49d8-ab5c-ca98b6308463) ### Additional information(其他任何相关信息) 猜测有个原因是因为使用了堡垒机,堡垒机默认编码为gbk编码,但是虚机使用的utf-8,所以导致此情况。
Author
Owner

@zxdong262 commented on GitHub (Jan 31, 2024):

确实存在,不是堡垒机问题,感谢反馈,将在下个版本修复

<!-- gh-comment-id:1918252782 --> @zxdong262 commented on GitHub (Jan 31, 2024): 确实存在,不是堡垒机问题,感谢反馈,将在下个版本修复
Author
Owner

@S0uLHun43r commented on GitHub (Feb 6, 2024):

我更新到了1.38.11,问题仍然存在
image
我还是当时那个猜测,如果堡垒机默认编码是gbk,登录时,electric 右下角仍然显示utf-8的编码,但是这时中文显示正常,应该实际上是识别的gbk编码,所以后面重切到utf8以后,机器上的中文恢复正常,但是堡垒机的菜单就会乱码了,不知道这种堡垒机和实际机器编码不一样的情况有无办法解决。

<!-- gh-comment-id:1928841789 --> @S0uLHun43r commented on GitHub (Feb 6, 2024): 我更新到了1.38.11,问题仍然存在 ![image](https://github.com/electerm/electerm/assets/17557425/e467a893-e460-433c-94ab-038cdb6a0aff) 我还是当时那个猜测,如果堡垒机默认编码是gbk,登录时,electric 右下角仍然显示utf-8的编码,但是这时中文显示正常,应该实际上是识别的gbk编码,所以后面重切到utf8以后,机器上的中文恢复正常,但是堡垒机的菜单就会乱码了,不知道这种堡垒机和实际机器编码不一样的情况有无办法解决。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2197
No description provided.