“行结尾必须是回车/换行 (CRLF) 对”是什么意思?意思是?

发布于 2024-10-30 07:09:26 字数 222 浏览 4 评论 0原文

我使用 http://icalvalid.cloudapp.net/Default.aspx 链接来验证以下链接我的日历。我收到警告“行结尾必须是回车/换行(CRLF)对。”。这意味着什么?我需要做什么来删除这个警告。任何人都可以帮助我解决这个问题。 我们将不胜感激您的帮助。谢谢。

I used http://icalvalid.cloudapp.net/Default.aspx link to validate the link of my calendar. And i got the warning "Line endings must be a Carriage Return/Line Feed (CRLF) pair.". What does this mean? What do I need to this to remove this warning. Can anyone please help me on this issues.
Your help will be appreciated. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

后知后觉 2024-11-06 07:09:26

这意味着文件必须是“Windows”格式,而不是 UNIX 格式。如果您从代码创建文件,则意味着您需要在行末尾写入“\r\n”,而不仅仅是“\n”——假设您使用的是某种有意义的语言, 当然。如果您手动创建文件,请从编辑器将其保存为“DOS 模式”。

It means the file has to be in "Windows" format, rather than UNIX format. If you're creating the file from code, it means that you need to write "\r\n" at the end of the lines, rather than just "\n" -- assuming you're using some language where that makes sense, of course. If you're creating the file by hand, save it in "DOS mode" from your editor.

吾家有女初长成 2024-11-06 07:09:26

您似乎正在运行 Linux 或 Mac OS X 机器,它仅使用 LF(换行)ASCII 值作为行结尾。

Windows 使用 CRLF(回车;换行)作为行结束符。

您必须对其进行转换,例如使用 Notepad++(尽管存在专用应用程序)。

It seems you are running a Linux or Mac OS X box, which uses just the LF (line feed) ASCII value for line endings.

Windows uses CRLF (carriage return; line feed) for line endings.

You must convert this, for example with Notepad++ (though dedicated application exist).

Oo萌小芽oO 2024-11-06 07:09:26

tr -d '\r' <用户列表.txt>新列表.txt

tr -d '\r' < userlist.txt > newlist.txt

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文