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:
This will include the mentioned library in the complied exe file.