我正在使用 hg convert
将 SVN 存储库转换为 Mercurial。但是像 æ、ø 和 å(丹麦语)这样的特殊字符在文件名中显示为 æ ø 和 Ã¥。
我使用的确切命令是:
hg convert http://svn.server/path/to/repo repo-hg
我在 Windows 7 上使用 TortoiseHg 2.1.4 和 Mercurial 1.9.3。
如何保留原有的特殊字符?
最佳答案
那些困惑的字符被 UTF-8 错误翻译为(可能)Windows-1252。正如@LazyBadger 所说,全局选项 --encoding utf8
可能会有所帮助。你能指出一个公共(public)丹麦服务器来尝试克隆吗?
关于version-control - 从 SVN 转换为 Mercurial (Windows) 时如何保留文件名中的特殊字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9836976/