Url encode

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "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 hexa...")
 

Latest revision as of 18:11, 10 November 2016

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 (%)


[edit] 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