gpt4 book ai didi

svn - 使用 git-svn 的代码页

转载 作者:太空狗 更新时间:2023-10-29 14:40:46 24 4
gpt4 key购买 nike

当我使用 git svn 克隆存储库时,我得到类似“єС,уалСИРЅРѕРµ”之类的东西,而不是文件名中的国家字符(俄语)....(我看不懂这个...)我认为 git试图在保存文件时使用 UTF-8 而不是 UTF-16,而 Windows 正在使用 UTF-16。有什么解决办法吗?我可以为 git svn 指定代码页吗?

最佳答案

这已记录在 msysgit issue 159 中(被认为是 issue 80 的副本),并在补丁提案“Windows: Assume all file names to be UTF-8 encoded. ”中进行了辩论。

不过,我认为这不会转化为任何实际的解决方案。

The biggest obstacle will be that git does not have a notion of "file name encoding" - it simply treats a file name as a stream of bytes. There is no place to write an encoding. If the byte streams are regarded as having an encoding, then you can have ambiguities, mixed encodings, or invalid characters. You would have to deal with this in some way.

我听说的唯一解决方案是这个 msysgit version来自这个GitHub repo :您可以尝试一下,看看是否仅针对此导入效果更好:Git-1.7.0.2-utf8-20100725.exe .

关于svn - 使用 git-svn 的代码页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4243482/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com