title: Replace accented character in Ruby
body: <p>I had a script or Ruby, and when I try to replace accented charcater <code>gsub</code> doesn't work with me :</p>
  
  <p>my floder name is <code>"Réé Ab"</code></p>
  
  <pre><code>name = File.basename(Dir.getwd)
  name.downcase!
  name.gsub!(/[àáâãäå]/,'a')
  name.gsub!(/æ/,'ae')
  name.gsub!(/ç/, 'c')
  name.gsub!(/[èéêë]/,'e')
  name.gsub!(/[ìíîï]/,'i')
  name.gsub!(/[ýÿ]/,'y')
  name.gsub!(/[òóôõö]/,'o')
  name.gsub!(/[ùúûü]/,'u')
  </code></pre>
  
  <p>the output <code>"réé ab"</code>, why the accented characters stil there ?</p>