2009-10-19 242 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