J
JZ
I have a strange problem with Perl. When I execute indexer.pl script
(from ksearch http://www.kscripts.com/scripts.shtml) with Perl 5.6.0
/ RedHat 7 it works fine. But if I execute the same script on another
computer working with Perl 5.8.0 / RedHat 9, I receive lots errors
like that:
Malformed UTF-8 character (overflow at 0x2ca77a73), byte 0x79, after
start byte 0xbf) in substitution (s///) at ./indexer.pl line 353
Line 353 from indexer.pl is:
$contents =~
s/(<\s*script[^>]*>.*?<\s*\/script\s*>)|(<\s*style[^>]*>.*?<\s*\/style\s*>)/
/gsi;
The same errors are for the latest version of ksearch 1.4 I have just
installed. So I suppose the problem is with Perl 5.8.0. (I have no
UTF-8 encoded files. All HTML files are ISO-8859-2 encoded)
(from ksearch http://www.kscripts.com/scripts.shtml) with Perl 5.6.0
/ RedHat 7 it works fine. But if I execute the same script on another
computer working with Perl 5.8.0 / RedHat 9, I receive lots errors
like that:
Malformed UTF-8 character (overflow at 0x2ca77a73), byte 0x79, after
start byte 0xbf) in substitution (s///) at ./indexer.pl line 353
Line 353 from indexer.pl is:
$contents =~
s/(<\s*script[^>]*>.*?<\s*\/script\s*>)|(<\s*style[^>]*>.*?<\s*\/style\s*>)/
/gsi;
The same errors are for the latest version of ksearch 1.4 I have just
installed. So I suppose the problem is with Perl 5.8.0. (I have no
UTF-8 encoded files. All HTML files are ISO-8859-2 encoded)