[GH-ISSUE #2345] 中文输入问题 #1498

Closed
opened 2026-02-27 00:03:47 +03:00 by kerem · 9 comments
Owner

Originally created by @yukifm on GitHub (Jan 1, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2345

Please check known issues first

https://github.com/electerm/electerm/wiki/Know-issues

Electerm version:

1.17.21 win64 portable版本

Operating system(linux, macos, or windows7/8/10?):

windows10

Expected Behavior

正常输入中文

Can you reproduce the same behavior in other terminal:

其他的终端可通过选择中文字体为宋体gb2312 方式解决
在其他终端录入可以获得gbk字符编码结果

Current Behavior

输入显示为乱码。
例如输入中文“我”,实际字符为E688,也就是我字utf8编码的前两个字符,远程终端本身是gbk的,感觉没有把本地操作系统的录入做转码

Possible Solution

把本地录入做转码,转为远程终端字符集

Steps to Reproduce

Context (Environment)

Detailed Description

Suggestions?

Originally created by @yukifm on GitHub (Jan 1, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2345 ## Please check known issues first https://github.com/electerm/electerm/wiki/Know-issues <!--- Provide some basic info --> ## Electerm version: 1.17.21 win64 portable版本 ## Operating system(linux, macos, or windows7/8/10?): windows10 ## Expected Behavior <!--- Tell me what should happen --> 正常输入中文 ## Can you reproduce the same behavior in other terminal: <!--- If same bahavior happens in other terminal, maybe it is supposed to be like this or not a problem of terminal app --> 其他的终端可通过选择中文字体为宋体gb2312 方式解决 在其他终端录入可以获得gbk字符编码结果 ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> 输入显示为乱码。 例如输入中文“我”,实际字符为E688,也就是我字utf8编码的前两个字符,远程终端本身是gbk的,感觉没有把本地操作系统的录入做转码 ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> 把本地录入做转码,转为远程终端字符集 ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. 2. 3. 4. ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem closed this issue 2026-02-27 00:03:47 +03:00
Author
Owner

@zxdong262 commented on GitHub (Jan 6, 2022):

有没有试过右下角编码设定?
Screen Shot 2022-01-06 at 9 20 11 PM

<!-- gh-comment-id:1006587072 --> @zxdong262 commented on GitHub (Jan 6, 2022): 有没有试过右下角编码设定? <img width="415" alt="Screen Shot 2022-01-06 at 9 20 11 PM" src="https://user-images.githubusercontent.com/1641949/148389015-73ac21ee-b01b-46a5-b218-e26ca5ba5ed5.png">
Author
Owner

@teiny commented on GitHub (Jan 8, 2022):

我是微软商店版1.17.21,一样不能输入中文。
修改编码的方式有试验过,依然不行。
我用的搜狗输入法11.6.0.5419,不知道是不是输入法的问题。

<!-- gh-comment-id:1007905150 --> @teiny commented on GitHub (Jan 8, 2022): > 我是微软商店版1.17.21,一样不能输入中文。 修改编码的方式有试验过,依然不行。 我用的搜狗输入法11.6.0.5419,不知道是不是输入法的问题。
Author
Owner

@wmy1010719164 commented on GitHub (Jan 9, 2022):

搜狗输入法升级至最新(11.6.0.5419),下载最新的eleterm,终端字符集设置为utf-8和gbk,都不能在命令行输入中文,但是可以通过复制中文来达到输入的目的,比如 echo "中文">> xxx.txt,cat 此文件也可以显示中文。总结起来就是,中文可以复制粘贴,但是无法交互式输入。

<!-- gh-comment-id:1008272251 --> @wmy1010719164 commented on GitHub (Jan 9, 2022): 搜狗输入法升级至最新(11.6.0.5419),下载最新的eleterm,终端字符集设置为utf-8和gbk,都不能在命令行输入中文,但是可以通过复制中文来达到输入的目的,比如 echo "中文">> xxx.txt,cat 此文件也可以显示中文。总结起来就是,中文可以复制粘贴,但是无法交互式输入。
Author
Owner

@zxdong262 commented on GitHub (Jan 9, 2022):

根据之前的反馈,有的输入法可以,有的输入法不可以,搜狗不行,但是对于同样基于electron的vscode是可以的,搜狗会给知名软件提供另外一种渲染方式

<!-- gh-comment-id:1008273964 --> @zxdong262 commented on GitHub (Jan 9, 2022): 根据之前的反馈,有的输入法可以,有的输入法不可以,搜狗不行,但是对于同样基于electron的vscode是可以的,搜狗会给知名软件提供另外一种渲染方式
Author
Owner

@teiny commented on GitHub (Jan 10, 2022):

已经给搜狗输入法提交反馈,不知道有用没。

<!-- gh-comment-id:1008494558 --> @teiny commented on GitHub (Jan 10, 2022): 已经给搜狗输入法提交反馈,不知道有用没。
Author
Owner

@AlphaCatMeow commented on GitHub (Jan 27, 2022):

首先,感谢作者能够研发出这么优秀的工具。个人认为是electerm的问题,v1.17.19这个版本还是可以中文输入的。最新的版本连百度输入法都无法正常输入中文了,只能切换到微软输入法才能输入,建议作者重新排查一下。为此我进行了版本回退,用起来还是很顺手的,再次感谢作者。

<!-- gh-comment-id:1022733048 --> @AlphaCatMeow commented on GitHub (Jan 27, 2022): 首先,感谢作者能够研发出这么优秀的工具。个人认为是electerm的问题,v1.17.19这个版本还是可以中文输入的。最新的版本连百度输入法都无法正常输入中文了,只能切换到微软输入法才能输入,建议作者重新排查一下。为此我进行了版本回退,用起来还是很顺手的,再次感谢作者。
Author
Owner

@etanman commented on GitHub (Feb 24, 2022):

搜狗拼音的确打上不汉字,搜狗五笔就没问题。

<!-- gh-comment-id:1049459764 --> @etanman commented on GitHub (Feb 24, 2022): 搜狗拼音的确打上不汉字,搜狗五笔就没问题。
Author
Owner

@zxdong262 commented on GitHub (Apr 6, 2022):

merge to https://github.com/electerm/electerm/issues/2232

<!-- gh-comment-id:1090262012 --> @zxdong262 commented on GitHub (Apr 6, 2022): merge to https://github.com/electerm/electerm/issues/2232
Author
Owner

@dwtowen commented on GitHub (Jan 11, 2024):

惨考如下地址解决问题:
https://github.com/electerm/electerm/issues/2815

<!-- gh-comment-id:1886217657 --> @dwtowen commented on GitHub (Jan 11, 2024): 惨考如下地址解决问题: https://github.com/electerm/electerm/issues/2815
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#1498
No description provided.