2009-10-19 140 views
2

我从阅读规范(http://www.ietf.org/rfc/rfc2445.txt)的理解是,“:”字符应该而不是在文本值(例如DESCRIPTION)中转义。iCalendar(rfc2445)中的TEXT值应该冒号冒号吗?

从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.

我问这个,因为我收到的会议设备v8.7.1b63为Mac OS X的语法错误,由于该字符,但不为Windows版本的软件(相同的版本号)。它使我从我写的软件中产生的ics文件窒息。这是我的软件中的一个错误吗?

这是在接收到错误的iCalendar档案:

BEGIN:VCALENDAR 
VERSION:2.0 
PRODID:-//abc/abc//NONSGML v1.0//EN 
BEGIN:VEVENT 
UID:[email protected] 
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上的问题,但根据标准,我认为这是不正确的。

感谢您的帮助!

回答

2

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

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

非常简单。

看看他们是否有任何补丁。 如果不是,请尝试联系他们并告诉他们。

+0

我与供应商讨论了我的问题,他们确认这是他们软件版本中的一个错误。 “:”不*需要被转义。 – JJMoho 2009-10-21 17:30:38