LanX has asked for the wisdom of the Perl Monks concerning the following question:
after some googling I found that I can solve my problems parsing unicode texts by applying binmode $fh, ':encoding(UTF-8)'; on the filehandle before reading.
But what if I'm using backticks or qx to capture the STDOUT of a command?
binmode STDIN, ':encoding(UTF-8)'; binmode STDOUT, ':encoding(UTF-8)';
didn't help...
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using "binmode ???, ':encoding(UTF-8)" on the result from "qx//" ?
by Anonymous Monk on Mar 31, 2010 at 19:24 UTC | |
by LanX (Saint) on Mar 31, 2010 at 19:32 UTC | |
by Anonymous Monk on Mar 31, 2010 at 20:18 UTC | |
by ikegami (Patriarch) on Mar 31, 2010 at 20:34 UTC |