Subject: | utf8 not handled correctly |
Geo::Coder::Yahoo seems to not handle utf8 correctly. My test script
use Data::Dumper;
use Geo::Coder::Yahoo;
my $geocoder = Geo::Coder::Yahoo->new(appid => 'geo-coder-yahoo-pm-test');
my $location = $geocoder->geocode(location => 'Berlin, Dudenstr. 24' );
print Data::Dumper->new([$location],[qw()])->Indent(1)->Useqq(1)->Dump;
generates the following result:
$VAR1 = [
{
"country" => "DE",
"longitude" => "13.381901",
"state" => "Germany",
"city" => "10965 Berlin",
"zip" => "",
"latitude" => "52.485176",
"address" => "Dudenstra\303\237e 24",
"precision" => "address"
}
];
The resulting address should contain *one* unicode character (the sharp
s, codepoint 0xdf).
This is with perl5.10.0 on a FreeBSD machine.
Regards,
Slaven