# str.uriencode()

`str.uriencode(s)` escapes the string `s`for use as a URI component. This is broadly equal to [encodeURIComponent in the browser](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent).

## Returns

* a string which is equivalent to `s` when decoded as a URI component.
