From: Brian Candler Date: 2008-09-17T18:15:03+09:00 Subject: Re: How to clean an xml files from non-utf-8 chars? If you really don't care about the content: str.gsub(/[\x80-\xff]/,'?') -- Posted via http://www.ruby-forum.com/.