当前位置:网站首页>SecureCRT garbled
SecureCRT garbled
2022-07-23 22:59:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .SecureCRT Connect Linux You often see garbled code when . There are three main reasons for garbled code 1.Linux Of etc The system default configured code 2. Set in the user environment variable LANG Variable 3.SecureCRT The setting of the character set in the session variable Just keep the code of the note set in these three places consistent . The solution is as follows : 1. Set the user's environment variables Query the current user's Local Information : # export |grep LANG declare -x LANG=”zh_CN.GB18030″ Set the user's Local by UTF-8 # env lang=zh_CN.utf8 HOSTNAME=devdbserver TERM=vt100 SHELL=/bin/bash HISTSIZE=1000 NLS_LANG=AMERICAN SSH_CLIENT=::ffff:192.168.14.12 51137 22 SSH_TTY=/dev/pts/2 JRE_HOME=/usr/java/jdk1.5.0/jre …….. lang=zh_CN.utf8 # You can see that the user's environment variable now sets the language to lang=zh_CN.utf8. 2. Set up SecureCRT. The setting steps are shown in the figure below : It should be noted that : After setting the character code to be the same as the user variable , Chinese garbled code may also appear . The reason is the font . Because some fonts cannot display Chinese , So Chinese will appear garbled . So when choosing fonts , You should choose the font that supports Chinese
1,Emulation
Terminal The choice is vt100, And choose “ANSI Color”( The background changes from white to black )
2,Appearance
Font New Tahoma is selected character utf8 Character set selection gb2312
locale -a View the local character set locale -m View all supported character sets View the current default settings echo $LANG The file that records the default language used by the system is /etc/sysconfig/i18n among LANG A variable is language For short , Users with a little English foundation can see that this variable determines the default language of the system , That is, the menu of the system 、 The toolbar language of the program 、 Input method, default language, etc .SYSFONT yes system font For short , Decide which font the system uses by default .SUPPORTED Variables determine the languages supported by the system , That is, the language that the system can display . It should be noted that , Because computers originated in English speaking countries , therefore , No matter what you set these variables to , English is always supported by default , And no matter what font you use , English fonts are always included .
linux Character set settings : 1. temporary export LANG= “zh_CN.UTF-8” 2. modify /etc/sysconf/i18n file , hold LANG=”zh_CN.UTF-8″ and source
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/126240.html Link to the original text :https://javaforall.cn
边栏推荐
- After reading this article, thoroughly understand grpc!
- Utilisation des fonctions fléchées es6
- Lixia action | Yuanqi Digitalization: existing mode or open source innovation?
- Tap series article 4 | backstage based tap developer portal
- Extract any page number in PDF file with itextpdf
- 视频号加强打击低俗内容:对违背公序良俗的内容必须赶尽杀绝
- Contemporary inspirational "women"
- Stm32f4 check the frequency of each part of the system
- [leetcode ladder] linked list · 203 remove linked list elements
- Tap series article 6 | application model of tap
猜你喜欢

D1-H 开发板——哪吒 开发入门

At the forefront of the times, Huawei aims at the wind and sea of digital finance

1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮

DHCP: prevent rogue DHCP server in the network
![[jailhouse article] a novel software architecture for mixed criticality systems (2020)](/img/ab/b9269acfa5135fdaa3d0d8cc052105.png)
[jailhouse article] a novel software architecture for mixed criticality systems (2020)
![[laser principle and Application-8]: EMC design of laser circuit](/img/98/8b7a4fc3f9ef9b7e16c63a8c225b02.png)
[laser principle and Application-8]: EMC design of laser circuit

Build your own target detection environment, model configuration, data configuration mmdetection

Microsoft SQL Server database language and function usage (XIII)

疯狂的牛市,下半场何去何从?2021-04-30

糖尿病遗传风险检测挑战赛进阶
随机推荐
[in depth study of 4g/5g/6g topic -40]: urllc-11 - in depth interpretation of 3GPP urllc related protocols, specifications and technical principles -5-5g QoS principle and Architecture: slicing, PDU s
Internet协议栈 TCP/IP模型 物理层、链路层、网络层、传输层、应用层的作用
SOLIDWORK learning notes: Sketch geometric relationships and editing
vip股票账户在手机开通安全吗?
DeFi項目的盈利邏輯 2021-04-26
Stm32+esp8266+mqtt protocol connects Alibaba cloud Internet of things platform
Utilisation des fonctions fléchées es6
synthesizable之Verilog可不可综合
礪夏行動|源啟數字化:既有模式,還是開源創新?
The canfd/can interface offline burning operation instructions of h7-tool have been updated (2022-07-12)
Rails搭配OSS最佳实践
FL Studio 20.9 update Chinese version host Daw digital audio workstation
糖尿病遗传风险检测挑战赛进阶
ospf终极实验——学会ospf世纪模板例题
Extract any page number in PDF file with itextpdf
Basic syntax of MySQL DDL and DML and DQL
Array -- 27. remove elements
J9 number theory: how can we overcome the fomo phenomenon in the digital industry?
Still worrying about xshell cracking, try tabby
Series of articles | the way to advance the microservice architecture in the cloud native era - best practices of microservice splitting