Also: you can change the encoding of an open filehandle using the three-arg form of binmode.
So if you know how the algorithm to figure out the encoding, you can open in byte mode, check the data, and binmode with the appropriate encoding layer.
In reply to Re: how do I check encoding before opening FILEHANDLE
by gaal
in thread how do I check encoding before opening FILEHANDLE
by dbrock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |