in reply to strip html tags and special characters in perl while inserting the text in to database.
If you're using perl 5.8, then use the module Encode (the function decode, that would be my first guess) that comes with it.
And don't just strip accented characters, you're replacing one kind of error with another. I have no objection to dumbing down special quote-like characters, to plaing double quotes and apostrophes. (I'm guessing " " actually represents a nbsp, which you can safely replace with plain spaces.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: strip html tags and special characters in perl while inserting the text in to database.
by valavanp (Curate) on Jun 10, 2007 at 17:12 UTC | |
by graff (Chancellor) on Jun 13, 2007 at 04:08 UTC |