Not really sure, but maybe you're looking for something like HTML::Entities (or XML::Entities) to decode the entity representations of those special characters (such as '), before applying your substitutions.
In reply to Re: Problem with quotes, speciao characters and so on, reading a xml file
by almut
in thread Problem with quotes, speciao characters and so on, reading a xml file
by Sombrerero_loco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |