[GH-ISSUE #1170] multi encoding support (GBK/GB18030) #676

Closed
opened 2026-02-27 00:00:34 +03:00 by kerem · 1 comment
Owner

Originally created by @yisiliang on GitHub (Mar 11, 2019).
Original GitHub issue: https://github.com/electerm/electerm/issues/1170

Electerm version:

v0.26.62

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

macos

Expected Behavior

Chinese character should be show correctly while remote LANG is GB18030.

[root@3aaee2d6db0d tmp]# ls -lrt weblogic.xml
-rw-r--r-- 1 cnaps2 cnaps2 659 11�� 27 17:26 weblogic.xml
[root@3aaee2d6db0d tmp]# env | grep LANG
LANG=zh_CN.GB18030
[root@3aaee2d6db0d tmp]# ls -lrt weblogic.xml | iconv -f GB18030 -t UTF-8 
-rw-r--r-- 1 cnaps2 cnaps2 659 11月 27 17:26 weblogic.xml
[root@3aaee2d6db0d tmp]# 

Current Behavior

Chinese character should be show correctly while remote LANG is GB18030.

[root@3aaee2d6db0d tmp]# ls -lrt weblogic.xml
-rw-r--r-- 1 cnaps2 cnaps2 659 11�� 27 17:26 weblogic.xml
[root@3aaee2d6db0d tmp]# env | grep LANG
LANG=zh_CN.GB18030
[root@3aaee2d6db0d tmp]# ls -lrt weblogic.xml | iconv -f GB18030 -t UTF-8 
-rw-r--r-- 1 cnaps2 cnaps2 659 11月 27 17:26 weblogic.xml
[root@3aaee2d6db0d tmp]# 

Possible Solution

N/A

Steps to Reproduce

  1. set LANG=zh_CN.GB18030 on remote host
    2.login and run ls -l

Context (Environment)

Detailed Description

Suggestions?

Add a encoding settings in label.

Originally created by @yisiliang on GitHub (Mar 11, 2019). Original GitHub issue: https://github.com/electerm/electerm/issues/1170 <!--- Provide some basic info --> ## Electerm version: v0.26.62 ## Operating system(linux, macos, or windows7/8/10?): macos ## Expected Behavior <!--- Tell me what should happen --> Chinese character should be show correctly while remote LANG is GB18030. ``` [root@3aaee2d6db0d tmp]# ls -lrt weblogic.xml -rw-r--r-- 1 cnaps2 cnaps2 659 11�� 27 17:26 weblogic.xml [root@3aaee2d6db0d tmp]# env | grep LANG LANG=zh_CN.GB18030 [root@3aaee2d6db0d tmp]# ls -lrt weblogic.xml | iconv -f GB18030 -t UTF-8 -rw-r--r-- 1 cnaps2 cnaps2 659 11月 27 17:26 weblogic.xml [root@3aaee2d6db0d tmp]# ``` ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> Chinese character should be show correctly while remote LANG is GB18030. ``` [root@3aaee2d6db0d tmp]# ls -lrt weblogic.xml -rw-r--r-- 1 cnaps2 cnaps2 659 11�� 27 17:26 weblogic.xml [root@3aaee2d6db0d tmp]# env | grep LANG LANG=zh_CN.GB18030 [root@3aaee2d6db0d tmp]# ls -lrt weblogic.xml | iconv -f GB18030 -t UTF-8 -rw-r--r-- 1 cnaps2 cnaps2 659 11月 27 17:26 weblogic.xml [root@3aaee2d6db0d tmp]# ``` ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> N/A ## 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. set LANG=zh_CN.GB18030 on remote host 2.login and run `ls -l` ## 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 --> Add a encoding settings in label.
kerem closed this issue 2026-02-27 00:00:34 +03:00
Author
Owner

@zxdong262 commented on GitHub (Mar 11, 2019):

https://github.com/electerm/electerm/issues/1169 duplicate

<!-- gh-comment-id:471388125 --> @zxdong262 commented on GitHub (Mar 11, 2019): https://github.com/electerm/electerm/issues/1169 duplicate
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#676
No description provided.