I'm trying to fix an issue for someone who's using a meta-search engine on a French web site. The data being pulled in, I would have assumed, should already be in UTF-8, since the engines being searched are French as well. But appearently its not, or it's getting munged at some point.
In his code, I've tried:
foreach my $r (@$results)
{
$r->{title} = encode_utf8($r->{title});
$r->{description} = encode_utf8($r->{description});
}
and:
{
utf8::encode($r->{title});
utf8::encode($r->{description});
}
The client says neither solutions seem to be working correctly. What else should I try?
Philip
------------------
Limecat is not pleased.
In his code, I've tried:
Code:
use Encode; foreach my $r (@$results)
{
$r->{title} = encode_utf8($r->{title});
$r->{description} = encode_utf8($r->{description});
}
and:
Code:
foreach my $r (@$results) {
utf8::encode($r->{title});
utf8::encode($r->{description});
}
The client says neither solutions seem to be working correctly. What else should I try?
Philip
------------------
Limecat is not pleased.