PuTTY 终端设置帮助 - 无法识别的字符

AJ.*_*AJ. 4 windows-7 character-encoding putty ubuntu-9.10

我在 Windows 7/64 位笔记本电脑上运行 PuTTY。我正在连接到运行 OpenSSH_5.1p1 Debian-6ubuntu2 的 Ubuntu 9.10/64 位系统。当我运行一些命令时,输出包含无法识别的字符,如下所示:

mod_helloworld.c:1: error: expected â)â before â*â token
mod_helloworld.c:28: error: expected â)â before â*â token
mod_helloworld.c:33: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âAP_MODULE_DECLARE_DATAâ
Run Code Online (Sandbox Code Playgroud)

但是,当我直接在 Ubuntu 系统上从终端运行此命令时,输出很清楚:

mod_helloworld.c:1: error: expected `)` before `*` token
mod_helloworld.c:28: error: expected `)` before `*` token
mod_helloworld.c:33: error: expected `=`, `,`, `;`, `asm` or `__attribute__` before `AP_MODULE_DECLARE_DATA`
Run Code Online (Sandbox Code Playgroud)

所以它似乎是导致问题的“反引号”字符。知道如何通过 PuTTY 设置纠正此问题吗?

谢谢,-aj

hea*_*vyd 6

PuTTY 错误地解释了终端发送的字符。

您可以在翻译设置中的窗口类别下更改字符集。将Received data 假定在 which character set: 中更改为正确的字符集。 为我工作。UTF-8

替代文字