in reply to utf8 and perl 5.6
Look at the similar discussion: Converting character encodings. With sub latin1 in the code examples you might even manage to do it in 5.6 without relying on additional modules.
fraktalisman keeps rolling
In Section
Seekers of Perl Wisdom