Perl Encode.pm cannot decode string with wide character

前端 未结 3 655
走了就别回头了
走了就别回头了 2021-02-07 08:14

I was running a perl app which uses /opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/Encode.pm

and issues an error

Cannot deco

3条回答
  •  臣服心动
    2021-02-07 08:18

    I had a similar problem. $enc->decode( $octets, $check ); expects octets.

    So put Encode::_utf8_off($octets) before. It made it work for me.

提交回复
热议问题