I was running a perl app which uses /opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/Encode.pm
/opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/Encode.pm
and issues an error
Cannot deco
I had a similar problem. $enc->decode( $octets, $check ); expects octets.
$enc->decode( $octets, $check );
So put Encode::_utf8_off($octets) before. It made it work for me.
Encode::_utf8_off($octets)