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

Outlook converts spaces to plus signs (with workaround) #20

Open
jerry-knight opened this issue Oct 20, 2020 · 9 comments
Open

Outlook converts spaces to plus signs (with workaround) #20

jerry-knight opened this issue Oct 20, 2020 · 9 comments

Comments

@jerry-knight
Copy link

jerry-knight commented Oct 20, 2020

In Chrome and Firefox, when creating Outlook calendar events using a URL like your example:

https://outlook.live.com/calendar/0/deeplink/compose?path=/calendar/action/compose&rru=addevent&startdt=2020-12-31T19:30:00Z&enddt=2020-12-31T22:30:00Z&subject=Birthday&body=With%20clowns%20and%20stuff&location=North%20Pole

Outlook converts all spaces to plus signs in the subject and body. No amount of encoding the spaces in the URL (%20 vs +) makes any difference.

The only workaround I've found is to convert spaces to thin space. The URL encoding is %E2%80%89, and from my testing, Outlook properly renders the thin spaces. No telling whether it affects other Outlook functions, but it's better than plus signs everywhere.

Additional note: I haven't done extensive browser testing, only Chrome and Firefox. I'm not sure if this issue is browser-dependent.

@Pjaerr
Copy link

Pjaerr commented Nov 3, 2020

Hey, I found this issue too, you can encode spaces using new line (%0A) and then use <br/> for any new lines. Not sure if it is better than your solution but it might be useful 👍

@SquidDev
Copy link

SquidDev commented Nov 3, 2020

I've had issues with using <br />, as the message gets truncated after it. However, using the HTML entity for a space (&#32;, or %26%2332; in the URL) does appear to work.

It also appears to work in the title, whereas %0A didn't for me.

@jerry-knight
Copy link
Author

I've had issues with using <br />, as the message gets truncated after it. However, using the HTML entity for a space (&#32;, or %26%2332; in the URL) does appear to work.

It also appears to work in the title, whereas %0A didn't for me.

I've verified that this works in the title and body. It doesn't appear to work in the location, but I still think this is a better solution overall than thin spaces. There's no telling how non-standard spaces will affect other Outlook features, like indexing, searching, sharing, etc. I stopped my thin space testing when it looked right in the edit page and calendar view.

Thanks for this solution.

@crysislinux
Copy link

It seems that drop rru=addevent could fix the issue. Not sure if there are any other side effects.

@webaware
Copy link

Good catch, looks good for strings with spaces encoded as %20 (i.e. not as +)

@SpencerRiddering
Copy link

The combination of removing rru=addevent and encoding spaces as %20 works for me.

@haveaguess
Copy link

Removing rru=addevent and %20 didnt work for me, issue only occurs on first redirect after login though, subsequent loads if already logged in are ok. %0A worked for me in all cases

@haveaguess
Copy link

haveaguess commented Feb 24, 2021

For line breaks Im finding <br> is working well instead of <br/>

@haveaguess
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants