From: Adrian Klaver <adrian.klaver@aklaver.com>
To: JORGE MALDONADO <jorgemal1960@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: WIN1252 vs UTF8 database encoding
Date: Wed, 4 May 2022 15:27:03 -0700
Message-ID: <ac7ff009-0eeb-f110-3070-ecf4efce7a44@aklaver.com> (raw)
In-Reply-To: <CAAY=A78phNKCq6gExba9ypqvdqow3y4oFRNzVXhqkisC5u6auw@mail.gmail.com>
References: <CAAY=A78phNKCq6gExba9ypqvdqow3y4oFRNzVXhqkisC5u6auw@mail.gmail.com>
On 5/4/22 14:51, JORGE MALDONADO wrote:
> Hi,
>
> I am currently working with a PostgreSQL database created with *WIN1252
> *encoding because the data will be in Spanish language. So, both
> *Collation* and *Character type* are set to *Spanish_Mexico.1252*
>
> After reading a bit more about encoding, it seems to me that I can use
> *UTF8* encoding so characters for all languages are available and keep
> *Collation* and *Character type* as *Spanish_Mexico.1252*. I guess that
> using *UTF8* as the encoding method will keep databases more general. I
> think that using *WIN1252* for encoding is restrictive.
>
> Does it make sense?
Yes:
https://www.postgresql.org/docs/current/multibyte.html
"On Windows, however, UTF-8 encoding can be used with any locale."
>
> Regards,
> Jorge Maldonado
--
Adrian Klaver
adrian.klaver@aklaver.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, jorgemal1960@gmail.com
Subject: Re: WIN1252 vs UTF8 database encoding
In-Reply-To: <ac7ff009-0eeb-f110-3070-ecf4efce7a44@aklaver.com>
References: <CAAY=A78phNKCq6gExba9ypqvdqow3y4oFRNzVXhqkisC5u6auw@mail.gmail.com> <ac7ff009-0eeb-f110-3070-ecf4efce7a44@aklaver.com>
* 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