From: "F. Senault" Date: 2007-01-19T22:10:14+09:00 Subject: Re: transform non-english text Le 19 janvier 2007 � 10:19, Hu Ma a �crit : > Hello, > I have a Ruby aplication that deals with non-english text and I want to > transform some of that text to [^a-zA-Z0-9]. You could try with Iconv to convert from your encoding to ASCII. Quick example : >> require "iconv" => true >> Iconv.iconv("ascii//translit", "iso-8859-1", "a�io�") => ["a'eio`u"] >> Iconv.iconv("ascii//translit", "iso-8859-1", "a�iou")[0].tr('^a-z', '') => "aeiou" Fred -- Can you see your days blighted by darkness ? Is it true you beat your fists on the floor ? Stuck in a world of isolation While the ivy grows over the door (Pink Floyd, Lost For Words)