From: Li Chen Date: 2008-10-10T04:51:11+09:00 Subject: Re: how to remove strange characters Nit Khair wrote: > 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. It works on scenario where iconv doesn't work. Good job!!! Li -- Posted via http://www.ruby-forum.com/.