One of our translations for some JavaScript code came back in the wrong encoding. Instead of being utf8, they came back as ISO8859. The Java guys had no idea how to fix it so...

perl -e 'open $fh, "<:encoding(iso88591)", "messages.js"; $/=undef; $f + = <$fh>; open $out, ">:utf8", "messages.js.utf8"; print $out $f;'
I don't want to know the hoops that the CPU went through to translate this file. All I know is that I didn't have to go through those hoops myself. Thanks, perl.

In reply to Adjusting encoding for files by Tanktalus

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":