Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Created December 20, 2014 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TLMcode/6c4e12da47e3df270274 to your computer and use it in GitHub Desktop.
Save TLMcode/6c4e12da47e3df270274 to your computer and use it in GitHub Desktop.
UriDecode() for AHk64 bit using htmlfile object
uri := "file:///D:/03%20Schreiben/01_Texte/15%20%E2%80%93%20Encyclop%C3%A4dien/Encyclopedia%20of%20Sociology.pdf"
msgbox % decodeURI( uri )
decodeURI( u )
{
( obj:=ComObjCreate("HTMLfile") ).write("<p>/</p><script>document.getElementsByTagName(""p"")[0].innerHTML=decodeURI(`""" u `""");</script>")
return obj.getElementsByTagName("p")[0].innerHTML
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment