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

:bug There is no'\,' in the original text, but'\,' appears in the exported ics file #326

Closed
sdy623 opened this issue Jul 29, 2021 · 1 comment

Comments

@sdy623
Copy link

sdy623 commented Jul 29, 2021

Environment :Windows NT 10.0 19042.1110
Python 3.7.10 with icalendar 4.0.7.
This is my python code section
if "aaa" in courseRoom : event.add('X-APPLE-STRUCTURED-LOCATION','geo:19.19810,114.514', parameters={'VALUE': 'URI', 'X-APPLE-MAPKIT-HANDLE': '','X-APPLE-RADIUS':'80','X-TITLE':'aaa'})
Section of Exported ics file
LOCATION:aaa X-APPLE-STRUCTURED-LOCATION;VALUE=URI;X-APPLE-MAPKIT-HANDLE=;X-APPLE-RADIU S=80;X-TITLE=aaa:geo:1919.810\,114.514
I found that if a ',' appears ,the output file appears a ',' why this problem occurs and how to solve the problem.
Thanks.

@Vincent-Stragier
Copy link

I think it is to escape , (see the RFC5545).

You can read:

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

Did it cause any issue?

@jacadzaca jacadzaca closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants