我想使用hg showconfigthen retrieving 获取我的 Mercurial 存储库的根路径bundle.mainreporoot。根路径有非 ASCII 字符,它是D:\maçã\asd.
的输出hg showconfig是:
...
bundle.mainreporoot=D:\maþÒ\asd
...
我在具有编码 cp850 的 Windows 7 Powershell 中运行它。我想告诉 Mercurial 以正确的编码 cp850 输出 showconfig。例如,我尝试过hg showconfig --encoding cp850但没有成功。
该字符þ在 cp850\xE7中,它看起来像 unicode 代码点 U+00E7 ç(我需要的正确字符),并且也在çcp1252 中。