in reply to Re^3: Problems w/ encoding in terminal
in thread Problems w/ encoding in terminal
Thank you very much! It worked.
Now i have investigated a bit farther on the web and found there is a module
use utf8::all;seems very interesting to me.
But i got a problem since i have included it:
utf8 "\xB4" does not map to Unicode (pointing to line 8, please read farther)
on running my script1, where i set:
use utf8::all; require 'script2';
In the script2 i have:
1 # again 2 use utf8::all; 3 4 sub openfile{ 5 my $file=shift @_; 6 my $cont; 7 open my $fh, '<', $file || die "sopen: Cann't open $file $!"; 8 do{ 9 $cont.=<$fh>; 10 }until( eof( $fh ) ); 11 close $fh; 12 return $cont; 13}
So, why is it so?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Problems w/ encoding in terminal
by choroba (Cardinal) on Aug 31, 2013 at 08:22 UTC | |
by humble (Acolyte) on Aug 31, 2013 at 10:18 UTC | |
by humble (Acolyte) on Sep 02, 2013 at 09:47 UTC | |
by humble (Acolyte) on Sep 02, 2013 at 09:52 UTC |
In Section
Seekers of Perl Wisdom