Perl runtime error

I made a standalone exe file, packed the perl file using PAR :: Packager.

The file works fine on my system, but it causes an error. if I used it on another system in which Windows xp is the OS.

The locale codeset (cp936) isn't one that perl can decode,Stopped at Encode/Locale.pm line 94
Compliation failed in require at LWP/UserAgent.pm line 1000

Please give some suggestion. thanks

Update: the files that I included in the script,

use Encode::Byte;
use strict;
use warnings;
use WWW::Mechanize;
use utf8;
+4
source share
1 answer

The following line is missing from the code:

use Encode::CN;

As you can see in the Encode :: Byte documentation , cp936 is not included. But it is listed in Encode :: CN docs .

Adding both packages (Encode :: Byte and Encode :: CN should solve your problem).

+1
source

All Articles