in reply to changing codepage while saving to a text file
use utf8; # $string being your string with wicked chars utf8::decode($string); [download]
hope this helps...
to ask a question is a moment of shame to remain ignorant is a lifelong shame