Thread: unescape a URL
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default unescape a URL

There's the API call to UrlUnescape:
http://msdn2.microsoft.com/en-us/library/ms628645.aspx

And also its partner UrlEscape.

NickHK

wrote in message
oups.com...
Is there a better way to unescape a URL? For now I'm getting by with
this but I'd like something more generic.

Thanks.

Function unescape(s As String)
s = Application.Substitute(s, "%20", " ")
s = Application.Substitute(s, "%3A", ":")
s = Application.Substitute(s, "%5C", "\")
unescape = s
End Function