in reply to Stripping bad characters in rss
See HTML::Escape - most likely you don't want to escape stuff yourself.
For your second question, you will need to think about the encoding that the text is in (as submitted to your program, see the Content-Encoding header), and the encoding your source code is in (did you place use utf8; at the top of your script).
|
|---|