decodeToUrl

@JvmOverloads
fun String.decodeToUrl(charset: String = "UTF-8"): String

Decodes an application/x-www-form-urlencoded string using a specific encoding scheme.

Example:

val s = "https%3A%2F%2Fwww.google.co.nz%2F%3Fgfe_rd%3Dcr%26ei%3DdzbFV%26gws_rd%3Dssl%23q%3Djava"
s.decodeToUrl() // https://www.google.co.nz/?gfe_rd=cr&ei=dzbFV&gws_rd=ssl#q=java

Since

1.1.0

See also