Re: How to find utf8.enc?
- From: newsdog <newsdog@xxxxxxxxxxx>
- Date: Mon, 27 Nov 2006 21:17:50 GMT
John Bokma wrote:
newsdog <newsdog@xxxxxxxxxxx> wrote:Here is the block of code from Parser.pm that produces the error, with
I'm running perl 5.8.8-5 under Fedora 5. My program
uses XML::Simple, which produces an error when I try to compile:
./frontend
Couldn't open encmap utf8.enc:
No such file or directory
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/Parser.pm line 187
We might be more able to help you (I guess) if you post line 187 (probably with some lines before it as well) so we can see the actual code that caused this (not all errors are clearly written, sadly).
line 187 indicated:
my $expat = new XML::Parser::Expat(@expat_options, @_);
my %handlers = %{$self->{Handlers}};
my $init = delete $handlers{Init};
my $final = delete $handlers{Final};
$expat->setHandlers(%handlers);
if ($self->{Base}) {
$expat->base($self->{Base});
}
&$init($expat)
if defined($init);
my @result = ();
my $result;
eval {
$result = $expat->parse($arg); <== LINE 187
};
my $err = $@;
if ($err) {
$expat->release;
die $err;
}
[end of code block]
The Expat package is installed; the problem appears to be that utf8
is the default character encoding, but there is no .enc object for
the default. But I am baffled as to what to do about it...
.
- References:
- How to find utf8.enc?
- From: newsdog
- Re: How to find utf8.enc?
- From: John Bokma
- How to find utf8.enc?
- Prev by Date: Windows CE, Windows Mobile
- Next by Date: Expression problem
- Previous by thread: Re: How to find utf8.enc?
- Next by thread: Re: How to find utf8.enc?
- Index(es):
Relevant Pages
|