url.encode
url.encode
Function
Percent-encode the URL component of the current text.
Syntax
url(text).encode()
Parameters
None.
Return value
| Type | Description |
|---|---|
| String | Encoded text. |
Code Example
result = url('BT Lang').encode() // Output: BT%20Lang print result
Notes
- Letters, numbers and
-_.~are not encoded.