+ 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:

"https://link.com/erp/list-view;ordnr...

the html code is:

<a href="https://link.com/erp/list-view;ordnr...

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

"https://link.com/erp/list%E2%80%90view;ordnr...

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.
jigarshahjigarshah
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 - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_functions.htm
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.