Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Created December 10, 2014 08:21
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/390a627237c500678adf to your computer and use it in GitHub Desktop.
Save TLMcode/390a627237c500678adf to your computer and use it in GitHub Desktop.
UriDecode() for AHk using jScript
uri := "file:///D:/03%20Schreiben/01_Texte/15%20%E2%80%93%20Encyclop%C3%A4dien/Encyclopedia%20of%20Sociology.pdf"
msgbox % UriDecode( uri )
UriDecode( u )
{
( obj := ComObjCreate( "ScriptControl" ) ).Language := "JScript"
return obj.Eval( "decodeURI(`""" u `""");" )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment