Re: utf8 vs UTF-8

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Troels Arvin <troels(at)arvin(dot)dk>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: utf8 vs UTF-8
Date: 2024-05-17 13:51:49
Message-ID: 2388205.1715953909@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Troels Arvin <troels(at)arvin(dot)dk> writes:
> In a Postgres installation, I have databases where the locale is
> slightly different. Which one is correct? Excerpt from "psql --list":

>  test1       | loc_test | UTF8     | libc            | en_US.UTF-8 |
> en_US.UTF-8
>  test3       | troels   | UTF8     | libc            | en_US.utf8 |
> en_US.utf8

On most if not all platforms, both those spellings of the locale names
will be taken as valid. You might try running "locale -a" to get an
idea of which one is preferred according to your current libc
installation ... but TBH, I doubt it's worth worrying about.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message arun chirappurath 2024-05-17 16:42:14 Execution history of a single query
Previous Message Hans Schou 2024-05-17 13:49:03 Re: utf8 vs UTF-8