in reply to Shooting at a Moving Target

The documentation available for Encode::Unicode looks relevant to your problem, irrespective of whether you end up actually using that module.

-M

Free your mind