http://www.perlmonks.org?node_id=535370


in reply to changing codepage while saving to a text file

You could use Encode and its friends to change the encoding of your data before writing.

Or you could use the functionality of open that allows you to specify the encoding of your data, as given in the example code open(FH, "<:utf8", "file") (which is for reading - writig will work analogously). I havent used that yet, but it sounds like the right solution.

I don't know about codepages though, I'd suggest you read the Encode documentation on it.

Cheers, Sören