in reply to changing codepage while saving to a text file

or maybe something like:
use utf8; # $string being your string with wicked chars utf8::decode($string);

hope this helps...

to ask a question is a moment of shame
to remain ignorant is a lifelong shame