note
graff
Of course, when using FB_CROAK as the CHECK argument, you normally want to wrap it in an eval:
<code>
my $encoding = "whatever";
my $octets = "characters in whatever encoding...";
eval '$_ = decode( $encoding, $octets, Encode::FB_CROAK )';
if( $@ ) {
report_an_error();
...
}
</code>
376805
377077