pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mail@localhorst.es
To: pgsql-admin@lists.postgresql.org
Subject: Different encodings and locales on one machine
Date: Thu, 04 Mar 2021 09:40:26 +0100
Message-ID: <a08646b59be303a9a3ffa21f72436b90@localhorst.es> (raw)

Hello,

at the moment I am running two different PostgreSQL (12) servers on one 
Ubuntu 20.04 machine.
For server one I need WIN1252 encoding with "de_DE.cp1252" locales set.
For server two I need UTF8 encoding, but also with "de_DE.cp1252" 
locales set.

I added support for
de_DE.CP1252 CP1252
de_DE.CP1252 UTF-8
to
/usr/local/share/i18n/SUPPORTED
and
/etc/locale.gen
and ran
locale-gen

PostgreSQL seems only to recognize the last entry I added. So I can 
either use "WIN1252" or "UTF-8" encoding with "de_DE.cp1252" locales.

Maybe I just have problems understanding how Liunx is handling encodings 
and locales.

Does anyone is successfully running PostgreSQL with a similar setup as I 
described?

Kind regards,
Patrick





view thread (3+ messages)  latest in thread

Message-ID: <a08646b59be303a9a3ffa21f72436b90@localhorst.es>
Permalink:  ../a08646b59be303a9a3ffa21f72436b90@localhorst.es/
Also on:    postgresql.org/message-id/a08646b59be303a9a3ffa21f72436b90@localhorst.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: mail@localhorst.es, pgsql-admin@lists.postgresql.org
  Subject: Re: Different encodings and locales on one machine
  In-Reply-To: <a08646b59be303a9a3ffa21f72436b90@localhorst.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox