Li Chen wrote:
> Hi all,
> 
> I grap some info from a webpage. Sometimes I get some stranges
> characters as follows (by p):
>  To depart in a hurry; abscond:  \342\200\234Your horse
> has\nabsquatulated!\342\200\235 (Robert M. Bird) To die.

Here's a quick hack I used recently. It was messing my display on 
ncurses, and I did not need the characters.

dataitem.gsub!(/[^[:space:][:print:]]/,'')

I got this while googling, iirc, its used somewhere in ROR.
-- 
Posted via http://www.ruby-forum.com/.