Re: upper() with LATIN1 problem - Mailing list pgsql-admin

From Tom Lane
Subject Re: upper() with LATIN1 problem
Date
Msg-id 15653.1113316051@sss.pgh.pa.us
Whole thread Raw
In response to upper() with LATIN1 problem  ("Lic. Guillermo González"<g.gonzalez@cybira.biz>)
Responses Re: upper() with LATIN1 problem
List pgsql-admin
=?ISO-8859-1?Q?=22Lic=2E_Guillermo_Gonz=E1lez=22?= <g.gonzalez@cybira.biz> writes:
> The problem is:
> - with a text 'magri��'
> - the upper('magri��') returns MAGRI��
> - NOTE that the characters '�' and '�' didn't change the case.

This is determined by your locale (specifically LC_CTYPE) not by what
the database thinks the encoding is.  You'll probably want to re-initdb
in the desired locale.

            regards, tom lane

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: db restore eats too much memory
Next
From: Reuly Bússolo Mendes
Date:
Subject: Re: Problem in order by