The locale codeset (cp1252) isn’t one that perl can decode…

We encountered this error while compiling a perl script:

The locale codeset (cp1252) isn’t one that perl can decode, stopped at Encode/Lo
cale.pm line 94. Compilation failed in require at LWP/UserAgent.pm line 1001.

The solution to this is to include the following use statement on the top of your script:

use Encode::Byte;

This will include the mentioned library in the complied exe file.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.