2 url parser multibyte/locale
6 if (!defined("http\\Url::PARSE_MBLOC") or
8 die("skip need http\\Url::PARSE_MBLOC support and LC_CTYPE=*.UTF-8");
14 setlocale(LC_CTYPE, "C.UTF-8");
18 "s\xc3\xa7heme://h\xc6\x9fst",
19 "s\xc3\xa7heme://h\xc6\x9fst:23/päth/öf/fıle"
22 foreach ($urls as $url) {
23 printf("\n%s\n", $url);
24 var_dump(new http\Url($url, null, http\Url::PARSE_MBLOC));
32 object(http\Url)#%d (8) {
52 object(http\Url)#%d (8) {
71 sçheme://hƟst:23/päth/öf/fıle
72 object(http\Url)#%d (8) {
84 string(16) "/päth/öf/fıle"