in reply to The locale codeset (cp1252) isn't one that perl can decode, stopped at Encode/Locale.pm line 94.

That error message is raised by the following code:

unless (Encode::find_encoding($ENCODING_LOCALE)) { my $foundit; if (lc($ENCODING_LOCALE) eq "gb18030") { eval { require Encode::HanExtra; }; if ($@) { die "Need Encode::HanExtra to be installed to support locale c +odeset ($ENCODING_LOCALE), stopped"; } $foundit++ if Encode::find_encoding($ENCODING_LOCALE); } die "The locale codeset ($ENCODING_LOCALE) isn't one that perl can + decode, stopped" unless $foundit; }

Most likely, Encode cannot decode "cp1252". Did you package Encode::Byte with your program?

  • Comment on Re: The locale codeset (cp1252) isn't one that perl can decode, stopped at Encode/Locale.pm line 94.
  • Download Code

Replies are listed 'Best First'.
Re^2: The locale codeset (cp1252) isn't one that perl can decode, stopped at Encode/Locale.pm line 94.
by gepebril69 (Scribe) on Jul 11, 2012 at 12:08 UTC

    With package do you mean add: use Encode::Byte

    to my code? If this is your question is than the answer is no.

    I will give that at try and wait +/- 20min for compilation

      Basically yes. Putting a use line like you mention is one of the ways to indicate to PAR::Packer to include another file. There also are other ways, as the documentation shows.

        Problem solved, thanks very much!!!