From: Jimmy Kofler Date: 2007-09-03T06:38:01+09:00 Subject: Re: UTF-8 character downcase!! > Re: UTF-8 character downcase!! > Posted by Igor K. (demoversion) on 02.09.2007 11:08 > > But i can't install this plugin on Windows(the problem i think with > command 'make', it's missing on Windows XP, so i can't compile source) > As already indicated above, you may also consider to roll your own utf8-aware downcase method. class String def downcase_utf8 gsub(/./mu) do |char| case char when /\320\237/u then "\320\277" when /\320\240/u then "\321\200" when /\320\230/u then "\320\270" when /\320\222/u then "\320\262" when /\320\225/u then "\320\265" when /\320\242/u then "\321\202" else char end end # gsub end end Cheers, J.K. -- Posted via http://www.ruby-forum.com/.