Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wide character in syswrite at /usr/share/perl/5.8/Net/Cmd.pm line 430

Status
Not open for further replies.

vbkal

Programmer
Jan 30, 2002
13
BE
Hello,

Does anyone know what this message means?

I've tried to find where it happens in my code (code processes html files) and I think the error happens on the line with the following information :
$minutes = `cat $abs_path/$link`;

It sometimes processes some html pages without troubles and on other pages my script is terminated with this error.

Anyone any idea as to how I can fix this?
thx in advance,
kalliet
 
Sorry if this is a "stupid" question,
but is it right if I tried :

I've put
use open IN => ':raw';
at the BEGINNING of my script. (where all the "Use ... " are located)
No change

I've also tried putting :
use open IN => ':locale';
and
binmode STDOUT, ":utf8" ;
binmode STDIN, ":utf8";

Both no change.
Am I putting it on the wrong location?

thx in advance
 
Hello,

Still looking for a fix to my problem. I've now narrowed the problem down to this line. Previous thougth of were it went wrong, was not correct .

my $tree = HTML::TreeBuilder->new_from_content($content);
my $formatter = HTML::FormatText->new();
my $textcontent = $formatter->format($tree);

If I set "print $content", then I get a print without problems.
If I set "print $textcontent", then I get the "Wide character in print at that line. (and I see a few weird characters)

Anyone any suggestions as to how the $textcontent is not valid?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top