From: Daniel DeLorme Date: 2007-09-26T07:59:10+09:00 Subject: Re: replacing diacritics by simple character Une B�vue wrote: > Daniel DeLorme wrote: > >> That doesn't work on all platforms. For me: >> >> >> require "iconv" >> => true >> >> i = Iconv.new("ASCII//TRANSLIT", "UTF-8") >> => # >> >> i.iconv("a�ou� �") >> => "a?ou? AE" >> >> :-( > > Are u sure about the encoding of "a�ou� �" ? yep. >> str = "a�ou� �" => "a\303\251ou\303\257 \303\206" #(that's utf8 allright) >> i.iconv(str) => "a?ou? AE" but like I said, translit doesn't work the same on all platforms (I'm on ubuntu btw) Daniel