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

P K*_*P K 31 linux special-characters

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

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

我在 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â ...
Run Code Online (Sandbox Code Playgroud)

cho*_*oba 42

您的终端是否配置为显示 UTF-8?尽量保持区域设置和终端设置一致。如果通过 ssh 连接,您也应该考虑目标机器的语言环境。

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

  • 编码与终端类型或 $TERM 无关。在 PuTTY 中,转到 *设置 -> 窗口 -> 翻译*。 (14认同)