title: Set encoding and fileencoding to utf-8 in Vim
body: <p>What is the difference between these two commands?</p>
  
  <ul>
  <li><code>set encoding=utf-8</code> </li>
  <li><code>set fileencoding=utf-8</code></li>
  </ul>
  
  <p>Do I need to set both when I want to use utf-8?</p>
  
  <p>Also, do I need to set fileencoding with <code>set</code> or <code>setglobal</code>?</p>