From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sai Teja <saitejasaichintalapudi@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: postgreSQL UPPER Method is converting the character "µ" into "M"
Date: Wed, 06 Sep 2023 09:53:37 -0400
Message-ID: <1507834.1694008417@sss.pgh.pa.us> (raw)
In-Reply-To: <CADBXDMXKnWKVY=5_q0Ww79dXd3e9x1M2t0S_ivVhk4VAma_Y0A@mail.gmail.com>
References: <CADBXDMXKnWKVY=5_q0Ww79dXd3e9x1M2t0S_ivVhk4VAma_Y0A@mail.gmail.com>
Sai Teja <saitejasaichintalapudi@gmail.com> writes:
> I am using UPPER document name for converting the text from lower case into
> upper case.
> But here for the below example
> Command:- select UPPER(testµ)
> Input :- testµ
> Output:- TESTM
> Expected output :- TESTµ
According to https://en.wikipedia.org/wiki/Greek_alphabet
the upper-case form of µ (mu) is in fact M, so I'm not sure
what problem you have with this. But in any case, you are
complaining in the wrong place. This conversion is determined
by the rules of the selected locale. If you don't like it,
choose another locale, or make your own, or try to persuade
the glibc maintainers that they are wrong.
regards, tom lane
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: tgl@sss.pgh.pa.us, saitejasaichintalapudi@gmail.com
Subject: Re: postgreSQL UPPER Method is converting the character "µ" into "M"
In-Reply-To: <1507834.1694008417@sss.pgh.pa.us>
References: <CADBXDMXKnWKVY=5_q0Ww79dXd3e9x1M2t0S_ivVhk4VAma_Y0A@mail.gmail.com> <1507834.1694008417@sss.pgh.pa.us>
* 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