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