function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Internal PartnerInternal Partner 

Hyphen is being displayed incorrectly as %E2%80%90 in a URL

Hi all,

I am using HTML code in a flow to redirect users to a URL they require to be like this:


the html code is:

<a href=";ordnr...

Now when the user click the link, the following URL is being displayed for them:


So  the hyphen is not being displayed correctly.

Is there a way to amend this? They want the hyphen definitely so I can not do anything here but to display the URL like they want with the hyphen.
The url you mention contains url encoded characters which represent each special character in their appropriate encodefd formats.

You might want to use LINKTO() or URLFOR() functions. Refer the following page to understand more about these functions -
Internal PartnerInternal Partner
None of these functions helped me, thanks anyway. 
Other comments would be pretty welcome.
Internal PartnerInternal Partner
When you create a button oy type URL, you will see the "Encoding URL   Unicode (UTF-8), that's why when you create a button of type URL this is automatically being displayed correctly as Salesforce helps here with the Encoding in Unicode. I am using the Screen element of the flow and I suppose you can write here whatever HTML you want. I added:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

but I can not test this if this amends the issue or not and I don't know how to test it. My client uses probably PDF or PHP to open the URL when clicking on the button.