Closed fabiodrg closed 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.
+
%20
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
%E2%80%89
I am still trying to figure out why... and if other characters are affected.
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%89GRANDEI am still trying to figure out why... and if other characters are affected.