title: Ruby 1.8 and UTF-8 string case statement compare
body: <p>I have a Rake task (in lib/tasks directory) that I run with cron on my shared web hosting. The problem is that I want to compare a UTF-8 string using case statment but my source code is not UTF-8 encoded. If I save source code as UTF-8 there is error when I try to start it :(</p>
  
  <p>What I have to do? </p>
  
  <p>May be read this strings from external UTF-8 txt file?</p>
  
  <p>P.S. I'm using Ruby 1.8</p>
  
  <p>P.S. I mean compare this way:</p>
  
  <pre><code>result = case utf8string
     when 'АБВ': 1
     when 'ГДИ': 2
     when 'ЙКЛ': 3
     when 'МНО': 4
     else 5
  end
  </code></pre>