简体   繁体   English

Cmd.exe和command.com-Windows 7上的特殊字符

[英]Cmd.exe and command.com - special characters on windows 7

When I start cmd.exe on windows XP and do this: 当我在Windows XP上启动cmd.exe并执行以下操作时:

  1. łłłłąłąłłł [enter]
  2. command.com [enter]
  3. asdfgąłś [enter]
  4. exit [enter]
  5. łąśś [enter]

Everything works as intended. 一切都按预期工作。 But when I do the same thing on windows 7, this is what happens: 但是,当我在Windows 7上执行相同的操作时,会发生以下情况:

  1. łłłłąłąłłł [enter]
  2. command.com [enter]
  3. asdfg [enter] //ąłś no longer available asdfg [enter] //±łś不再可用
  4. exit [enter]
  5. lass [enter] //łąśś appears as lass, from now on cmd.exe has no special characters available. lass [enter] ///łąśś显示为lass,从现在开始cmd.exe没有可用的特殊字符。

Does anyone know what is happening here? 有人知道这里发生了什么吗? Why win7 behaves in this strange way? 为什么win7以这种奇怪的方式表现? Is there anything I can do about it? 有什么我可以做的吗?

To correctly handle this characters, you need a specific pagecode. 要正确处理此字符,您需要特定的页面代码。 You can test which pagecode it is with chcp command. 您可以使用chcp命令测试它是哪个页面代码。

If you start command.com (the 16bit DOS command processor) that pagecode can change, and when you exit from command.com the pagecode will not be the same. 如果启动command.com (16位DOS命令处理器),则该页面代码可以更改,并且当您从command.com退出时,页面代码将不同。 Try 尝试

chcp [enter]
command.com [enter]
chcp [enter]
chcp [enter]
exit [enter]
chcp [enter]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM