jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am transforming html files into xml data sheets and I am finding certain characters are breaking the script. I am trying to filer these out but I fear I am being reactive rather than proactive and it's really a case of waiting for a character to break the script. Is there a generic approach or module to try to trap these things before they crop up?
$content =~s/ís//gi; $content =~s/ìH//gi; $content =~s/Ùt//gi; $content =~s/ía//gi; $content =~s/∫s//gi; $content =~s/íX//gi;
Lindsay Côté
United States
Lindsay’s love of travel
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: stripping characters from html
by almut (Canon) on Aug 03, 2010 at 13:29 UTC | |
Re: stripping characters from html
by graff (Chancellor) on Aug 03, 2010 at 21:01 UTC | |
by Your Mother (Archbishop) on Aug 03, 2010 at 21:07 UTC | |
by graff (Chancellor) on Aug 04, 2010 at 02:55 UTC | |
by GrandFather (Saint) on Aug 04, 2010 at 09:11 UTC | |
by Anonymous Monk on Aug 05, 2010 at 15:40 UTC | |
Re: stripping characters from html
by pemungkah (Priest) on Aug 04, 2010 at 00:53 UTC |
Back to
Seekers of Perl Wisdom