2 url parser multibyte/locale/topct
6 if (!defined("http\\Url::PARSE_MBLOC") or
7 !stristr(setlocale(LC_CTYPE, NULL), ".utf")) {
8 die("skip need http\\Url::PARSE_MBLOC support and LC_CTYPE=*.UTF-8");
17 "http://mike:paΓwort@πππ.it/for/β¬/?by=Β’#ΓΈ"
20 foreach ($urls as $url) {
21 var_dump(new http\Url($url, null, http\Url::PARSE_MBLOC|http\Url::PARSE_TOPCT));
27 object(http\Url)#%d (8) {
33 string(12) "pa%C3%9Fwort"
35 string(15) "πππ.it"
39 string(15) "/for/%E2%82%AC/"