[GH-ISSUE #3303] Unable to input Chinese in GBK font #2220

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

Originally created by @l-xiao-lin on GitHub (Mar 6, 2024).
Original GitHub issue: https://github.com/electerm/electerm/issues/3303

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

electerm-1.38.19-win-x64-installer.exe

Platform detail (平台详情)

win10

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

In GBK font, entering Chinese will result in garbled characters

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

Under GBK font, Chinese can be input normally

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

There is no GBK Chinese garbled code issue on xshell and secretCRT

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

No response

Originally created by @l-xiao-lin on GitHub (Mar 6, 2024). Original GitHub issue: https://github.com/electerm/electerm/issues/3303 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-1.38.19-win-x64-installer.exe ### Platform detail (平台详情) win10 ### What steps will reproduce the bug?(重新问题的详细步骤) In GBK font, entering Chinese will result in garbled characters ### What should have happened?(期望的结果) Under GBK font, Chinese can be input normally ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) There is no GBK Chinese garbled code issue on xshell and secretCRT ### Additional information(其他任何相关信息) _No response_
Author
Owner

@zxdong262 commented on GitHub (Mar 6, 2024):

What is GBK font, can you provide a screenshot?

<!-- gh-comment-id:1980420403 --> @zxdong262 commented on GitHub (Mar 6, 2024): What is GBK font, can you provide a screenshot?
Author
Owner

@l-xiao-lin commented on GitHub (Mar 7, 2024):

What is GBK font, can you provide a screenshot?
看头像,像是国内大佬 ,那我就用中文了,
在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能

<!-- gh-comment-id:1982489311 --> @l-xiao-lin commented on GitHub (Mar 7, 2024): > What is GBK font, can you provide a screenshot? 看头像,像是国内大佬 ,那我就用中文了, 在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能
Author
Owner

@l-xiao-lin commented on GitHub (Mar 7, 2024):

What is GBK font, can you provide a screenshot?
看头像,像是国内大佬 ,那我就用中文了,
在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能

在xshell和secretCRT 工具中 在BGK格式下都是可以正常上输入中文的

<!-- gh-comment-id:1982493460 --> @l-xiao-lin commented on GitHub (Mar 7, 2024): > > What is GBK font, can you provide a screenshot? > > 看头像,像是国内大佬 ,那我就用中文了, > > 在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能 在xshell和secretCRT 工具中 在BGK格式下都是可以正常上输入中文的
Author
Owner

@zxdong262 commented on GitHub (Mar 7, 2024):

What is GBK font, can you provide a screenshot?
看头像,像是国内大佬 ,那我就用中文了,
在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能

在xshell和secretCRT 工具中 在BGK格式下都是可以正常上输入中文的

是windows系统设为GBK编码吗

<!-- gh-comment-id:1982603870 --> @zxdong262 commented on GitHub (Mar 7, 2024): > > > What is GBK font, can you provide a screenshot? > > > 看头像,像是国内大佬 ,那我就用中文了, > > > 在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能 > > 在xshell和secretCRT 工具中 在BGK格式下都是可以正常上输入中文的 是windows系统设为GBK编码吗
Author
Owner

@l-xiao-lin commented on GitHub (Mar 7, 2024):

What is GBK font, can you provide a screenshot?
看头像,像是国内大佬 ,那我就用中文了,
在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能

在xshell和secretCRT 工具中 在BGK格式下都是可以正常上输入中文的

是windows系统设为GBK编码吗

在linux环境下
image

<!-- gh-comment-id:1982990877 --> @l-xiao-lin commented on GitHub (Mar 7, 2024): > > > > What is GBK font, can you provide a screenshot? > > > > 看头像,像是国内大佬 ,那我就用中文了, > > > > 在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能 > > > > > > 在xshell和secretCRT 工具中 在BGK格式下都是可以正常上输入中文的 > > 是windows系统设为GBK编码吗 在linux环境下 ![image](https://github.com/electerm/electerm/assets/23718774/a0aa6ff7-0b3f-41de-8eb4-94661f1baf18)
Author
Owner

@l-xiao-lin commented on GitHub (Mar 7, 2024):

What is GBK font, can you provide a screenshot?
看头像,像是国内大佬 ,那我就用中文了,
在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能

在xshell和secretCRT 工具中 在BGK格式下都是可以正常上输入中文的

是windows系统设为GBK编码吗

在linux环境下 image

使用utf-8时,输入中文 就是正常的
image

<!-- gh-comment-id:1982995083 --> @l-xiao-lin commented on GitHub (Mar 7, 2024): > > > > > What is GBK font, can you provide a screenshot? > > > > > 看头像,像是国内大佬 ,那我就用中文了, > > > > > 在GBk下,输入中文会乱码,在UTF-8下可以正常输入中文,但我们的使用场景就是需要GBK环境下输入中文,不知道electerm能否实现这个功能 > > > > > > > > > 在xshell和secretCRT 工具中 在BGK格式下都是可以正常上输入中文的 > > > > > > 是windows系统设为GBK编码吗 > > 在linux环境下 ![image](https://private-user-images.githubusercontent.com/23718774/310811402-a0aa6ff7-0b3f-41de-8eb4-94661f1baf18.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDk4MDE3MjcsIm5iZiI6MTcwOTgwMTQyNywicGF0aCI6Ii8yMzcxODc3NC8zMTA4MTE0MDItYTBhYTZmZjctMGIzZi00MWRlLThlYjQtOTQ2NjFmMWJhZjE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzA3VDA4NTAyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzYTg2YWE2NDQzNGZjYjQwMzBmZWZhYjFmZGNhODZlZDVjNjM4MThmYWRkZDliOGIyM2VkNDNjOGZiYTAyYjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Y5srbhpIWApeDdKnMrVoNBrdklAJHWzZYvStzU9fzBY) 使用utf-8时,输入中文 就是正常的 ![image](https://github.com/electerm/electerm/assets/23718774/8e424dbd-0562-4d8a-8c8c-783d7c73014a)
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#2220
No description provided.