Subject: Re: How to clean an xml files from non-utf-8 chars?
From: Brian Candler <b.candler@ b . m
Date: Wed, 17 Sep 2008 18:15:03 +0900
References: 315124
In-reply-to: 315124
If you really don't care about the content:
str.gsub(/[\x80-\xff]/,'?')
--
Posted via http://www.ruby-forum.com/.