Autohandler:40 error

I keep randomly getting this error:

error: Unsupported conversion: Invalid argument at
/usr/local/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm line 115.
context:

111: } map {
112: Encode::Alias->find_alias($) || lc($)
113: } ($[1], $[2]);
114:
115: my $result = ($from eq $to) ? $[0] : (
116: $decoder{$from, $to} ||= Text::Iconv->new( $from, $to )
117: )->convert($
[0]);
118:
119: return $result;

code stack:
/usr/local/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm:115
/usr/local/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm:91
/export/home2/www/ece_ssl/rt3/share/html/autohandler:40

I’m using mysql and modperl1, RT version 3.0.4. My Encode module is the
latest.

Any ideas?

Sam Smith

I’m using mysql and modperl1, RT version 3.0.4. My Encode module is the
latest.

Well, since your mod_perl is apparently compiled with 5.6.1,
it can’t really use the Encode module…

Can you try replacing /usr/local/lib/perl5/site_perl/5.6.1/Encode/compat/common.pm
line 115 to 119 with this:

my $result = eval { ($from eq $to) ? $_[0] : (
$decoder{$from, $to} ||= Text::Iconv->new( $from, $to )
)->convert($_[0]) };
die "_convert($from => $to) failed: $@" if $@;
return $result;

and get back to me about what value of $from and $to is in the error message?

Thanks,
/Autrijus/