Le 25 septembre 18:25, Une Bñ×ue a ñÄrit :

(Hello again... :) )

> do u know of a way to replace diacritics by simple character (ie. : > -o-> e)
> 
> the same with ligatures (ie. : -o-> AE )
> 
> using tables ?

IConv can do that for you :

>> require "iconv"
=> true
>> i = Iconv.new("ASCII//TRANSLIT", "ISO-8859-15")
=> #<Iconv:0x84d4448>
>> i.iconv("añÐu¥Ë")
=> "a'eou"i AE"
>> i.iconv("añÐu¥Ë").gsub(/[^a-zA-Z0-9 ]/, '')
=> "aeoui AE"

Fred
-- 
I've found an axe can do a lot for a paper-mangling printer. Especially
if you shout for one at the top of your voice, and then a cow orker
brings you said instrument.  Suddenly, no more paper jams.
                                             (Kai Henningsen in the SDM)