I have a URL that with spaces and # in it that I escape using URI::Escape to get the following.
https://copy.com/1rsdM7TvVcLfGebc/name%20with%20space%20and%20%23%20in%20it.jpg?
Note: In the original page from where I copied the above clicking the link doesn't work. The HTML from that page is shown here.
<a href=3D"https://copy.com/1rsdM7TvVcLfGebc/name%20with%20space%20and%20%23=
%20in%20it.jpg?source=3Dbsf" style=3D"color: white; font-weight: =
bold;">name with space and # in it.jpg</a>
As you can see # is correctly encoded as %23. The problem is when I click the link the browsers don't retain it as %23 but encode it to # and prevent me from taking to the destination. This is how the link looks in the browser. You can see that after # the spaces are not rendered as %20 either. The behavior is different in other browsers and none of them works.
https://www.copy.com/s/1rsdM7TvVcLfGebc/name%20with%20space%20and%20# in it.jpg
When I manually replace # with %23 in the browser and push enter it correctly takes me to the page.
What's going on here?
3Dbefore the quotes? Otherwise the url looks fine.