Replace string in hyperlink, new Outlook error

Post Reply
PdFUser5000
Member
Posts: 134
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: 1129
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.
PdFUser5000
Member
Posts: 134
Joined: Fri Jun 12, 2020 11:23 am

Re: Replace string in hyperlink, new Outlook error

Post by PdFUser5000 »

freddyp wrote: Mon Sep 04, 2023 11:32 am &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.
I am running into some difficulties with this. I am not sure if String Replace does change the spaces or not. When i run the file through String Replace with Private data mode, no errors appear and the address is still with spaces. My address is inside a dataset, but using the dataset mode changes everything inside that dataset, which i can't use, because there is other information inside there and using the dataset mode breaks the metadata. I am not sure if using the Private data mode is correct. My data is situated at:

Code: Select all

[Metadata.Text:Dataset="PPinfo",Model="XML",Path="/orderinfo/customerPath"]
Sometimes the hyperlink is not even displayed as an hyperlink.

Am i perhaps doing something wrong here, or should i just wait for Outlook to hopefully fix their links before we start using the new version?
PdFUser5000
Member
Posts: 134
Joined: Fri Jun 12, 2020 11:23 am

Re: Replace string in hyperlink, new Outlook error

Post by PdFUser5000 »

magnussandstrom wrote: Fri Aug 30, 2024 12:26 pm Have you tried this app? https://www.enfocus.com/en/appstore/product/uri-handler
Tried, but had no success, it just displayed the encoded URI as regular text, even though it was inside html tags.

Although a solution I found was to use UNC paths in the link. Outlook still displays the link with encoded symbols, but now it works when i try to open it. Something I also noticed was that now outlook adds a file:// in front of the link.
wryharrow
Newbie
Posts: 1
Joined: Thu Sep 19, 2024 5:31 am

Re: Replace string in hyperlink, new Outlook error

Post by wryharrow »

Does anyone know of a way or a program that will read a received email and recognize a static format of text (in my case it will be "#" followed by 6 integers), and make that a hyperlink to a webpage?

I have to think something similar exists. This would operate in the same fashion that when you type "www.google.com" and then hit Enter or space, it automatically converts this into a hyperlink. That is for a composed email, I'm looking for this in received emails.
Post Reply