You have not given us the information we need to help you. Where were/are the  and the ° you mention? How are you writing the file back out in perl?
That said, is this your problem?
In reply to Re: XML Encoding Problem
by idsfa
in thread XML Encoding Problem
by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |