in reply to Re: Process input file
in thread Process input file

In other words, sounds like the OP should binmode the file handle (to ":raw" or to the proper encoding).