ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: Handling £ (pound sterling) symbols in content
by Neil Hughes other posts by this author
Jul 7 2009 10:08AM messages near this date
view in the new Beta List Site
Re: Handling £ (pound sterling) symbols in content | Re: Handling £ (pound sterling) symbols in content
& XSLT 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
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Neil Hughes
Mirod
Neil Hughes
Grant McLean
Dave Howorth
Neil Hughes
Dave Howorth

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved