Re: postgreSQL UPPER Method is converting the character "µ" into "M"

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: Sai Teja <saitejasaichintalapudi(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: postgreSQL UPPER Method is converting the character "µ" into "M"
Date: 2023-09-06 16:37:19
Message-ID: 116684458.10688.1694018239289@office.mailbox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/09/2023 18:04 CEST Sai Teja <saitejasaichintalapudi(at)gmail(dot)com> wrote:

> When I'm trying the below command
> Select UPPER('Mass')
> I'm getting MASS as output .
> But when I created the column with generated always constraint
> For example
> Alter table xyz add column xyz varchar(800) generated always as (UPPER(content)) stored
>
> Here content is original string coming from the table
> The output is coming as 'µass" when I am selecting the data from the table

Please provide the statements (CREATE TABLE, INSERT, and SELECT) to reproduce
it otherwise it's hard to analyze what's going on.

Homoglyphs are one explanation if you get 'µass' from the generated column as
described. Another explanation is that you just selected a different column.

--
Erik

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Erik Wienhold 2023-09-06 16:47:57 Re: postgreSQL UPPER Method is converting the character "µ" into "M"
Previous Message Sai Teja 2023-09-06 16:04:43 Re: postgreSQL UPPER Method is converting the character "µ" into "M"