gpt4 book ai didi

standards - 冒号字符是否应该在 iCalendar (rfc2445) 的 TEXT 值中转义?

转载 作者:行者123 更新时间:2023-12-04 07:02:43 24 4
gpt4 key购买 nike

我阅读规范( http://www.ietf.org/rfc/rfc2445.txt )的理解是“:”字符应该 不是 被转义为文本值,如描述。

来自 RFC:

The "TEXT" property values may also contain special characters that are used to signify delimiters, such as a COMMA character for lists of values or a SEMICOLON character for structured values. In order to
support the inclusion of these special characters in "TEXT" property
values, they MUST be escaped with a BACKSLASH character. A BACKSLASH
character (US-ASCII decimal 92) in a "TEXT" property value MUST be
escaped with another BACKSLASH character. A COMMA character in a
"TEXT" property value MUST be escaped with a BACKSLASH character
(US-ASCII decimal 92). A SEMICOLON character in a "TEXT" property
value MUST be escaped with a BACKSLASH character (US-ASCII decimal 92). However, a COLON character in a "TEXT" property value SHALL NOT be escaped with a BACKSLASH character.



我问这个是因为我在 Mac OS X 的 Meeting Maker v8.7.1b63 中收到语法错误,因为这个字符而不是软件的 Windows 版本(相同的版本号)。我从我编写的软件生成的 ics 文件令人窒息。这是我的软件中的错误吗?

这是收到错误的 iCalendar 文件:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//abc/abc//NONSGML v1.0//EN
BEGIN:VEVENT
UID:1234_abcd@abc.abc
DTSTART:20091022T133000
DTEND:20091022T150000
SUMMARY:Special Topics in Power Point
LOCATION:The Location
DESCRIPTION:Learn how to use PowerPoint as a tool to organize and pres
ent your ideas to others. Basic computer skills are required. This h
ands-on workshop will provide you with experience in the following: wh
at's new in PowerPoint 2007\, presentation basics\, working with text
\, viewing a presentation\, formatting\, finalizing a presentation and
delivering a presentation.
END:VEVENT
END:VCALENDAR

请注意说明第三行的冒号。向这个冒号添加斜线可以解决 Mac 上的问题,但我认为根据标准,这是不正确的。

谢谢你的帮助!

最佳答案

这似乎是他们软件中的错误。

"However, a COLON character in a "TEXT" property value SHALL NOT be escaped with a BACKSLASH character."



很简单。

看看他们有没有补丁。
如果没有,请尝试与他们联系并告诉他们。

关于standards - 冒号字符是否应该在 iCalendar (rfc2445) 的 TEXT 值中转义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1590368/

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