Re: Handling £ (pound sterling) symbo ls in content
Neil Hughes <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On 2/7/09 12:50, mirod wrote: > > I suspect your data is not in utf-8 (or utf-16). If the pound sign is encoded in > latin1 (or a windows encoding), then the XML is not well-formed. > > You can check that by doing for example iconv -f utf8 -t utf8 myfile.xml If that > fails, then add an XML declaration with the proper encoding at the top of the > file or convert it to utf8 (using iconv again). A bit more investigation proved that it was indeed a Windows encoding (1252) and the correct declaration fixed the problem. Thanks to everyone for their suggestions. -- Neil Hughes _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs