http://qs321.pair.com?node_id=564174


in reply to Unicode nightmare

You might want to have a look at the Encode:: namespace on CPAN.