September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
8
Task/URL-decoding/Kotlin/url-decoding.kotlin
Normal file
8
Task/URL-decoding/Kotlin/url-decoding.kotlin
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// version 1.1.2
|
||||
|
||||
import java.net.URLDecoder
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val encoded = arrayOf("http%3A%2F%2Ffoo%20bar%2F", "google.com/search?q=%60Abdu%27l-Bah%C3%A1")
|
||||
for (e in encoded) println(URLDecoder.decode(e, "UTF-8"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue