in reply to Re^2: how do I check encoding before opening FILEHANDLE
in thread how do I check encoding before opening FILEHANDLE

Well, it's easy but not utterly trivial, because if you open the file in the wrong encoding and compare stings or try a regexp, the comparison will fail. (And if you claim utf8 and it isn't, you have to catch an exception that will be raised).
  • Comment on Re^3: how do I check encoding before opening FILEHANDLE