title: How to connect to PostgreSQL with epgsql (Erlang)?
body: <p>I want to run a simple PostgreSQL query with Erlang and epgsql similar to <a href="https://stackoverflow.com/questions/10350272/erlang-and-postgresql">Erlang and PostgreSQL</a>. I am getting</p>
  
  <pre><code>** exception error: no match of right hand side value 
  {error,
      {authentication,
          [{severity,'Ð\222Ð\220Ð\226Ð\235Ð\236'},
           {code,"28000"},
           {message,[208,191,208,190,208,187,209,140,208,183,208,190,208,178,208,176,209,130,208,181|...]},
           {file,"auth.c"},
           {line,302},
           {routine,"auth_failed"}]}}
  </code></pre>
  
  <p>on</p>
  
  <pre><code>{ok, C} = pgsql:connect("localhost", 
                          "postgres", 
                          "password", 
                          [{database, "postgres"}]).
  </code></pre>
  
  <p>My PostgreSQL instance works fine and I can add a table to my database or run simple queries. But I need to do it with epgsql. And furthermore, I can't read error message, this is what I can see:</p>
  
  <pre><code>[208,191,208,190,208,187,209,140,208,183,208,190,208,178,208,176,209,130,208,181|...]
  </code></pre>