in reply to Re: Need help with binary mode and UTF-8 characters
in thread Need help with binary mode and UTF-8 characters

Thanks. Yes, chomping twice didn't make sense. The point was to string a lot of lines together into one, so chomping once and then adding \n at the end did. Yes, I needed to add
binmode(IN, ':encoding(UTF-8)'); and binmode(OUT, ':encoding(UTF-8)');