【问题标题】:Run time error in perlperl中的运行时错误
【发布时间】:2013-11-14 06:17:39
【问题描述】:

我通过使用 PAR::Packager 打包一个 perl 文件制作了一个独立的 exe 文件。

该文件在我的系统中运行良好,但会引发错误。如果我在另一个以 windows xp 作为操作系统的系统中使用它。

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

请给点建议。谢谢

更新: 我在脚本中包含的文件是

use Encode::Byte;
use strict;
use warnings;
use WWW::Mechanize;
use utf8;

【问题讨论】:

  • @mpapec 谢谢,但我已经在我的脚本中包含了该文件。
  • Encode::Alias Encode::Config 呢?
  • Encode::CN 呢?

标签: perl par


【解决方案1】:

您的代码中缺少以下行:

use Encode::CN;

正如您在Encode::Byte documentation 中看到的,cp936 不包括在内。但它在Encode::CN docs 中列出。

添加两个包(Encode::Byte 和 Encode::CN 应该可以解决您的问题)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-22
    • 2014-11-30
    • 1970-01-01
    • 2013-11-09
    • 1970-01-01
    相关资源
    最近更新 更多