使用非ascii字符提交文本文件时出现问题

时间:2022-06-12 15:30:58

I have a html file that contain some Greek characters, and whenever I try to commit it I got:

我有一个包含一些希腊字符的html文件,每当我尝试提交它时,我得到:

commitlog: file="dummy.html" appears to be a BINARY commitlog error: file="dummy.html" appears BINARY but checked in as ASCII cvs commit: Pre-commit check failed

commitlog:file =“dummy.html”似乎是BINARY commitlog错误:file =“dummy.html”出现BINARY但签入为ASCII cvs commit:提交前检查失败

I am using: cvs add -kk dummy.html cvs commit dummy.html

我正在使用:cvs add -kk dummy.html cvs commit dummy.html

Is there any way to workaround this and commit file as text and not as binary.

有没有办法解决这个问题,并将文件作为文本而不是二进制文件提交。

Thanks

2 个解决方案

#1


It depends on how your files are encoded. If you use utf-8 for example, CVS could treat this as normal text files.

这取决于文件的编码方式。例如,如果您使用utf-8,则CVS可将此视为普通文本文件。

#2


Try add this file with the following command:

尝试使用以下命令添加此文件:

cvs add -kb

cvs add -kb

if you want binary file, try:

如果你想要二进制文件,请尝试:

cvs add -ko

cvs add -ko

#1


It depends on how your files are encoded. If you use utf-8 for example, CVS could treat this as normal text files.

这取决于文件的编码方式。例如,如果您使用utf-8,则CVS可将此视为普通文本文件。

#2


Try add this file with the following command:

尝试使用以下命令添加此文件:

cvs add -kb

cvs add -kb

if you want binary file, try:

如果你想要二进制文件,请尝试:

cvs add -ko

cvs add -ko