in reply to Re^2: How to call Encode::decode from Perl XSin thread How to call Encode::decode from Perl XS
That code uses sv_utf8_decode not Encode::decode. I already use sv_utf8_decode.