如何在使用代码页 437 时回显特殊字符,如 »?

How to echo special characters like » on using code page 437?

我目前正在处理一个批处理文件并使用代码页 437。我希望该批处理响应 右指向双角引号,但无法弄清楚对于我的生活如何或找到等效的东西。

关于 code page 437 的维基百科文章列出了此代码页定义的所有字符及其代码值。

字符right-pointing double angle quotation mark »的Unicode代码值为U+00BB。它在代码页 437 中也可用,十进制代码值为 175(十六进制 AF)。

最好使用文本编辑器编写此批处理文件,它支持使用 OEM 代码页 437 编辑文件。

但是如果使用 Windows 记事本不支持使用任何代码页编辑文本文件,则必须使用默认的 ANSI character encoding and insert the macron character ¯ into the batch file which has the decimal code value 175 (hex. AF) in code page Windows-1252系统 ANSI 代码页关于在代码页 437 作为系统 OEM 代码页的国家/地区不使用 Unicode。

ANSI 在这里是 每个字符一个字节 编码的常见缩写。代码页 Windows-1252437 并未真正由 American National Standards Institute (ANSI) 指定。