SUMMARY中的逗号

问题描述 投票:0回答:1

在ics文档中的摘要标签中可以使用逗号吗?

因为我使用 calcurse 加载一个 .ics 文档,但它并没有用逗号分隔来加载事件。

icalendar
1个回答
1
投票

根据RFC5545规范,逗号在这种情况下需要反斜线。 请看。

SUMMARY 是在这里定义的。https:/tools.ietf.orghtmlrfc5545#section-3.8.1.12。 作为值类型。 TEXT

文本 是在这里定义的。https:/tools.ietf.orghtmlrfc5545#section-3.3.11

这里是上述规范的一部分,它描述了如果你想在文本值中包含某些字符,该如何处理它们。

text       = *(TSAFE-CHAR / ":" / DQUOTE / ESCAPED-CHAR)
          ; Folded according to description above

       ESCAPED-CHAR = ("\\" / "\;" / "\," / "\N" / "\n")
          ; \\ encodes \, \N or \n encodes newline
          ; \; encodes ;, \, encodes ,

       TSAFE-CHAR = WSP / %x21 / %x23-2B / %x2D-39 / %x3C-5B /
                    %x5D-7E / NON-US-ASCII
          ; Any character except CONTROLs not needed by the current
          ; character set, DQUOTE, ";", ":", "\", ","

   Description:  If the property permits, multiple TEXT values are
      specified by a COMMA-separated list of values.

 ...

      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 COMMA character in
      a "TEXT" property value MUST be escaped with a BACKSLASH
      character.  ....
© www.soinside.com 2019 - 2024. All rights reserved.