diff options
-rwxr-xr-x | test/it.t | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -481,3 +481,16 @@ is(ob_get_clean(), "aa"); it::file_put($tmpfile, "bb"); is(it::file_get($tmpfile), "bb"); unlink($tmpfile); + +requesturi(utf8_decode("lüönd"), "lüönd"); +requesturi(utf8_decode("ü").utf8_encode("ü"), "üü"); +requesturi(utf8_encode("müller"), "müller"); +requesturi(utf8_encode(utf8_encode("müller")), "müller"); +requesturi("I 💚 Nü York", "I 💚 Nü York"); + +function requesturi($teststring, $expect) +{ + $_SERVER['REQUEST_URI'] = urlencode($teststring); + it::params2utf8(); + is(urldecode($_SERVER['REQUEST_URI']), $expect, "parms2utf8('$expect')"); +} |