Encoding and perl IO

Ahhh. Light goes on. This post shows how to open a file in perl using a particular encoding, which was a faq I guess I never read. It would explain all manner of weirdness and problems I’ve had with encodings, entities and so on.