Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
13
Task/URL-decoding/Pike/url-decoding.pike
Normal file
13
Task/URL-decoding/Pike/url-decoding.pike
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
void main()
|
||||
{
|
||||
array encoded_urls = ({
|
||||
"http%3A%2F%2Ffoo%20bar%2F",
|
||||
"google.com/search?q=%60Abdu%27l-Bah%C3%A1"
|
||||
});
|
||||
|
||||
|
||||
foreach(encoded_urls, string url) {
|
||||
string decoded = Protocols.HTTP.uri_decode( url );
|
||||
write( string_to_utf8(decoded) +"\n" ); // Assume sink does UTF8
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue