title: connect to postgresql database with different locale
body: <p>I have some old database that I need to connect to (postgres 9.1). I have no problem to start server with</p>
  
  <pre><code>pg_ctl start -D D:\datadir\pgdata\data -w
  </code></pre>
  
  <p>but when I try to connect, it gives:</p>
  
  <pre><code>psql -U postgres -p 15432
  psql: FATAL:  database locale is incompatible with operating system
  DETAIL:  The database was initialized with LC_COLLATE "Norwegian (Bokmål)_Norway.1252",  which is not recognized by setlocale().
  HINT:  Recreate the database with another locale or install the missing locale.
  </code></pre>
  
  <p>new version of postgres would not start server (incompatible data version).
  I'm using windows 10, with postgres 9.1 binaries.</p>
  
  <p>How would it be possible to connect, migrate, upgrade such database, to access it data?</p>