title: In Ruby on Rails, are '#encoding: utf-8' and 'config.encoding = "utf-8"' different?
body: <p>I can specify any ruby file to use specific encoding by add a comment line at its top:</p>
  
  <pre><code>#encoding: utf-8
  </code></pre>
  
  <p>But in Rails' <code>config/application.rb</code>, I found this:</p>
  
  <pre><code>config.encoding = "utf-8"
  </code></pre>
  
  <p>Are they different? If I have set <code>config.encoding = "utf-8"</code>, still I need <code>#encoding: utf-8</code>?</p>