msramalho / SigTools

📆 Sigarra Tools | An extension that makes the information system of the University of Porto slightly better.
https://chrome.google.com/webstore/detail/sigarra-to-calendar/piefgbacnljenipiifjopkfifeljjkme
Apache License 2.0
37 stars 0 forks source link

Microsoft does not like the normal space character anymore :shrug: #83

Closed fabiodrg closed 3 years ago

fabiodrg commented 3 years ago

Quite an odd issue... I noticed that strings with spaces (event title or description) result in weird characters in Outlook. For instance, space is rendered as +. Even if the text is encoded, and spaces are replaced with %20 after encoding.

Demo: https://outlook.live.com/calendar/0/deeplink/compose?body=DESCRI%C3%87%C3%83O%20MUITO%20GRANDE&enddt=2021-03-17T20%3A45%3A00%2B00%3A00&location=&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=2021-03-17T17%3A15%3A00%2B00%3A00&subject=TITULO%20MUITO%20GRANDE

However, replacing the normal spaces with a thin space solves the problem! :exploding_head: The link below is the same as the first one. However, normal spaces (%20) are replaced with thin spaces (%E2%80%89): https://outlook.live.com/calendar/0/deeplink/compose?body=DESCRI%C3%87%C3%83O%E2%80%89MUITO%E2%80%89GRANDE&enddt=2021-03-17T20%3A45%3A00%2B00%3A00&location=&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=2021-03-17T17%3A15%3A00%2B00%3A00&subject=TITULO%E2%80%89MUITO%E2%80%89GRANDE

I am still trying to figure out why... and if other characters are affected.