Subject: | encode ("gb18030", $utf8) does not load Encode::HanExtra implicitly |
$gb18030 = encode("gb18030", $utf8); loads Encode::HanExtra implicitly?
Actually it does not:
perl -MEncode -e 'print encode("GB18030", "交易成功");'
Unknown encoding 'GB18030' at -e line 1
But if I explicitly load the module, it works:
perl -MEncode -MEncode::HanExtra -e 'print encode("gb18030", "交易成功");'
�0�1�0�2��0�3�0�4�0�9�0�3�0�8�0�6�0�2�0�0�0�1