"why doesn't Perl handle this conversion itself by determining what command output encoding is in effect and converting as needed?"
How could it even reliably determine whether the output was text? A command launched via qx could easily be outputting binary data (e.g. an image; some compressed data; etc). "Converting encoding" on binary data is very likely to corrupt it.
In reply to Re: How to convert non-ASCII output from qx
by tobyink
in thread How to convert non-ASCII output from qx
by freonpsandoz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |