in reply to Re^5: Problems w/ encoding in terminal
in thread Problems w/ encoding in terminal
Exactly! I apologise exceedingly! -- I was watching my files' content encoding always, but this time i missed it. Please pardon me!
Now, how do i tell PERL to warn me on opening non-UTF8 file's content?
I used:
use utf8::all; open $fh, '<', $file || die "sopen: Cann't open $file $!"; binmode $fh, ':encoding(UTF-8)'; do{ $cont.=<$fh>; }until( eof( $fh ) ); close $fh;
But it keeps saying:
utf8 "\xB4" does not map to Unicode at ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Problems w/ encoding in terminal
by humble (Acolyte) on Sep 02, 2013 at 09:47 UTC | |
|
Re^7: Problems w/ encoding in terminal
by humble (Acolyte) on Sep 02, 2013 at 09:52 UTC |