From: "Andreas S." Date: 2010-10-12T08:16:52+09:00 Subject: Re: Ruby 1.9.2: How to sanitize text with invalid characters? Using iconv to clean the string works: Iconv.conv('utf-8//IGNORE','utf-8',"#{0xFF.chr} abcde") => " abcde" However, it would be nicer if there was a way to do this with the built-in encoding functions of Ruby 1.9. -- Posted via http://www.ruby-forum.com/.