Dave Burt <dave / burt.id.au> wrote: > > tranmap.inject(self) do |str, (utf8, asc)| > p [utf8, asc] > str.gsub(utf8, asc) > end > end > end > > "IõÓnãÕißÍizëÕiøî".utf8_trans_unaccent #=> "Internationalizaetion" # one time preprocessing INTL, ASC = "", "" tranmap.each {|k,v| INTL << k ASC << v } # quicker than repeated gsubs: str.tr(INTL, ASC) martin