LanX has asked for the wisdom of the Perl Monks concerning the following question:

Hi

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
      Thx! Anonymous++ ;)

      Cheers Rolf

        On a related note , in case anyone was wondering, that doesn't affect the DATA filehandle