Subject: | host returns punycoded domain |
===
use strict;
use warnings;
use URI;
use utf8;
my $s = "http://hey\x80/";
my $u = URI->new($s);
print $u->host;
__END__
xn--hey-da
===
that should be documented (for host method). not everyone needs hostname punycoded. non-punycoded hostnames are prefered (according to punycode spec.) when displaying to user.
(yes, i know now that there is ihost method)