str.uriencode()

str.uriencode(s) escapes the string sfor use as a URI component. This is broadly equal to encodeURIComponent in the browser.

Returns

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

Last updated

Was this helpful?