Url encode

From UBot Studio
Revision as of 18:11, 10 November 2016 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function is a Socket Function. The command will properly encode the url by converting spaces to plus signs (+) and other incompatible signs to a hexadecimal value that is prefixed by a percent sign (%)


Example

plugin command("SocketCommands.dll", "socket container") {
    set(#url encode,$plugin function("SocketCommands.dll", "$url encode", "http://wiki.ubotstudio.com/wiki/How_To_Switch_Browsers"),"Global")
    load html(#url encode)
}

The function encodes the url and returns the following value:

http%3A%2F%2Fwiki.ubotstudio.com%2Fwiki%2FHow_To_Switch_Browsers
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox