From: Rajarshi Chakravarty Date: 2010-12-06T17:27:06+09:00 Subject: Re: purging non ascii chars Thank you Ammar for the code and Caleb for the encoding explanation. The special char that I wanted to remove was text.gsub /[^\x20-\x7F\x0D\x0A]/, '' did the job :) -- Posted via http://www.ruby-forum.com/.