title: Putting French (accented) characters in Ruby file
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1739836/invalid-multibyte-char-us-ascii-with-rails-and-ruby-1-9">invalid multibyte char (US-ASCII) with Rails and Ruby 1.9</a>  </p>
  </blockquote>
  
  
  
  <p>How can I put French characters in a Ruby file? Here is an error:</p>
  
  <pre><code>SyntaxError in ArticlesController#show 
  
      /.../app/controllers/articles_controller.rb:47: invalid multibyte char (US-ASCII)
      /.../app/controllers/articles_controller.rb:47: invalid multibyte char (US-ASCII)
      /.../app/controllers/articles_controller.rb:47: syntax error, unexpected $end, expecting '}'
      ...@article, notice: 'Article a été créé avec succes.' }
  </code></pre>
  
  <p>In a HTML file a put this in head and the accents work:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;head&gt;
  &lt;meta http-equiv="content-type" content="text/html"; charset="utf8"&gt;
  &lt;meta http-equiv="Content-Script-Type" content="text/javascript"&gt;
  &lt;meta http-equiv="Content-Style-Type" content="text/css"&gt;
    &lt;!-- ... autres mentions de l'entête de fichier ... --&gt;
  &lt;/head&gt;
  </code></pre>