|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: stripping characters from htmlby almut (Canon) |
| on Aug 03, 2010 at 13:29 UTC ( #852656=note: print w/ replies, xml ) | Need Help?? |
|
I am finding certain characters are breaking the script. In what way are they breaking the script? Maybe you just need to entity-encode those characters (preferably use numeric entities (encode_entities_numeric()), as in contrast to HTML, in XML only very few named entities are predefined (i.e. work without explicit entity declarations)). Does ∫ really cause an error? Alternatively, try specifying an appropriate encoding (in the first line of the XML file: <?xml version="1.0" encoding="..."?>). Or, as a last resort, simply strip everything outside of the ASCII range.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||