Man Page: webcommon.urlencode
Operating Environment: debian
Section: 3kaya
WebCommon.urlEncode(3kaya) Kaya module reference WebCommon.urlEncode(3kaya)NAMEWebCommon::urlEncode - URL encode a stringSYNOPSISString urlEncode( String x )ARGUMENTSx The string to encodeDESCRIPTIONURL encode a string. You should use this to encode reserved characters in URLs that you wish to be passed literally. // trying to pass "http://www.example.com" as a parameter url = "http://localhost/test.cgi?url="; url += urlEncode("http://www.example.com"); // url = http://localhost/test.cgi?url=http%3A%2F%2Fwww.example.com Note that in the example above, encoding the whole URL would be incorrect - that would create a relative URL beginning "http://".AUTHORSKaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/LICENSEThe Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.RELATEDWebCommon.urlDecode(3kaya) Kaya October 2012 WebCommon.urlEncode(3kaya)