Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC 6868 - " and \n in parameters #652

Open
niccokunzmann opened this issue Jun 24, 2024 · 0 comments
Open

RFC 6868 - " and \n in parameters #652

niccokunzmann opened this issue Jun 24, 2024 · 0 comments
Labels

Comments

@niccokunzmann
Copy link
Member

niccokunzmann commented Jun 24, 2024

RFC 6868 adds these parsing rules:

When generating iCalendar or vCard parameter values, the following
apply:
o formatted text line breaks are encoded into ^n (U+005E, U+006E)
o the ^ character (U+005E) is encoded into ^^ (U+005E, U+005E)
o the " character (U+0022) is encoded into ^' (U+005E, U+0027)
When parsing iCalendar or vCard parameter values, the following
apply:
o the character sequence ^n (U+005E, U+006E) is decoded into an
appropriate formatted line break according to the type of system
being used
o the character sequence ^^ (U+005E, U+005E) is decoded into the ^
character (U+005E)
o the character sequence ^' (U+005E, U+0027) is decoded into the "
character (U+0022)
o if a ^ (U+005E) character is followed by any character other than
the ones above, parsers MUST leave both the ^ and the following
character in place

With a few test cases, we can support them.

See also:

@niccokunzmann niccokunzmann changed the title RFC 6868 RFC 6868 - " and \n in parameters Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant