Replace string in hyperlink, new Outlook error

Post Reply
PdFUser5000
Member
Posts: 122
Joined: Fri Jun 12, 2020 11:23 am

Replace string in hyperlink, new Outlook error

Post by PdFUser5000 »

I have a local server folder link in my private data that i use in e-mails as a hyperlink. It sometimes contains spaces and & symbols. Replacing the & works fine with String Replace, but when i try to replace space with   the newest preview version of outlook changes it to %C2%A0

Am i using String replace wrong somehow? My replace is " = ". Or is this somekind of an Outlook bug? I tried using UTF-8 encoding to change the space to %20, it's correct in Outlook, but the link still does not work, copying the link to explorer shows the space as %20.
freddyp
Advanced member
Posts: 1023
Joined: Thu Feb 09, 2012 3:53 pm

Re: Replace string in hyperlink, new Outlook error

Post by freddyp »

&nbsp is an HTML construct. A space in a URL is encoded as %20, so if you use that in String replace it should work.
Post Reply