gpt4 book ai didi

perl - perl 中的运行时错误

转载 作者:行者123 更新时间:2023-12-01 05:16:12 25 4
gpt4 key购买 nike

我通过使用 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;

最佳答案

您的代码中缺少以下行:

use Encode::CN;

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

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

关于perl - perl 中的运行时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19970878/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com