在Linux PuTTY控制台中获取Â和â字符


28

我对运行的大多数命令的手动输出中的âÂ感到非常恼火。

有人可以提出解决方案吗?

我在SSH模式下使用PuTTY,我的Linux服务器由Amazon EC2定制。

echo $TERM
xterm

´B´ :Bold_Disable/Enable_toggle
              This command will influence use of the âboldâ terminfo capability and alters both the summary area and task area for the  ´cur-
              rentâ window.  While it is intended primarily for use with dumb terminals, it can be applied anytime.

              Note:  When  this  toggle  is On and top is operating in monochrome mode, the entire display will appear as normal text.  Thus,
              unless the âxâ and/or âyâ ...

Answers:


40

您的终端是否配置为显示UTF-8?尝试使语言环境和终端设置保持一致。如果通过ssh连接,则还应该考虑目标计算机的语言环境。

在PuTTY中,转到设置->窗口->翻译-> UTF-8


我如何检查腻子?我的终端类型为echo $ TERM xterm
PK

14
编码与终端类型或$ TERM不相关。在PuTTY中,转到设置->窗口->翻译
grawity 2011年

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.