title: How to db_dump with correct encoding
body: <p>I am doing a script that is able to download a db_dump of a remote postgres database.</p>
  
  <p>The problem is that I am trying to get the remote database on the correct enconding and I'm not being able to do it.</p>
  
  <p>the remote database has a LATIN1 enconding and when I execute the script I dumped it is UTF-8</p>
  
  <p>note that I want it to keep the encoding of the remote database so if the remote db is UTF-8 i want the local one to be utf-8 too</p>
  
  <p>does someone know how to accomplish this??</p>