是否有可以显示 Unicode 字符的 Windows 命令外壳? [英] Is there a Windows command shell that will display Unicode characters?

查看:36
本文介绍了是否有可以显示 Unicode 字符的 Windows 命令外壳?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我安装了带有适当字形的字体,是否有适用于 Windows XP 的命令外壳可以显示 Unicode 字符?至少,应该正确显示 Unicode 的两件事:

Assuming I have fonts installed which have the appropriate glyphs in them, is there a command shell for Windows XP that will display Unicode characters? At a minimum, two things that should display Unicode correctly:

  • 目录列表.我不在乎我必须输入什么(dir、ls、get-childitem 等),只要名称中包含 Unicode 字符的文件以正确的字形显示,而不是不可打印的字符框.
  • 文本文件内容列表.再说一次,如果是少"、多"、猫"、狗"等对我来说无关紧要,只要打印字符即可.我认识到这更复杂,因为文件的字符编码,所以如果我必须在命令行上指定,那对我来说没问题.

这是我迄今为止尝试过的:

Here's what I've tried so far:

  • cmd.exe
  • Windows PowerShell;包括多语言版本.
  • Cygwin bash

没有运气.我什至尝试安装 cmd/的自定义字体PowerShell.PowerShell 和 cmd.exe 似乎是 Unicode 感知的,因为我可以将不可打印的框复制/粘贴到那里,并且它将粘贴到具有正确字符的其他应用程序中.Cygwin (?) 似乎转换为 ?字符,并通过复制/粘贴.

No luck. I even tried installing custom fonts for cmd/PowerShell. PowerShell and cmd.exe seem to be Unicode-aware in the sense that I can copy/paste the non-printable box out of there and it will paste into other apps with the correct characters. Cygwin (?) seems to convert to the ? character and that comes through in the copy/paste.

有什么想法吗?

推荐答案

这是 PowerShell v1 中的一个主要问题.版本 2 附带了一个图形外壳"来纠正问题,这最终不是使用 PowerShell,而是使用 Windows 控制台主机(Cmd.exe 也使用).如果需要,您可以获取 PowerShell v2 的当前 CTP.

This was a major issue in PowerShell v1. Version 2 is shipping with a "graphical shell" that corrects the problem, which is ultimately not with PowerShell, but with the Windows console host (which Cmd.exe also uses). You can get the current CTP for PowerShell v2, if you want.

实际上,PowerShell v2.0 已在 8 月初完成并随 Windows 7 和 Windows Server 2008 R2 的发布一起发布.此外,向后移植的版本 (Windows Vista/2008) 就在前几天达到了它们的候选发布里程碑;Windows XP/Windows Server 2003 应该很快就会推出.链接链接.

Actually, PowerShell v2.0 was finalized and shipped with the release of Windows 7 and Windows Server 2008 R2 in early August. In addition, the backported versions (Windows Vista/2008) reached their Release Candidate milestone just the other day; Windows XP/Windows Server 2003 should follow very shortly. Linky linky.

这篇关于是否有可以显示 Unicode 字符的 Windows 命令外壳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆