X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 969EC535A4 for ; Tue, 12 Apr 2005 11:27:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09653-09 for ; Tue, 12 Apr 2005 14:27:45 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B538053593 for ; Tue, 12 Apr 2005 11:27:44 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3CERVwo015654; Tue, 12 Apr 2005 10:27:31 -0400 (EDT) To: =?ISO-8859-1?Q?=22Lic=2E_Guillermo_Gonz=E1lez=22?= Cc: pgsql-admin@postgresql.org Subject: Re: upper() with LATIN1 problem In-reply-to: <425BCCC3.40403@cybira.biz> References: <425BCCC3.40403@cybira.biz> Comments: In-reply-to =?ISO-8859-1?Q?=22Lic=2E_Guillermo_Gonz=E1lez=22?= message dated "Tue, 12 Apr 2005 09:27:31 -0400" Date: Tue, 12 Apr 2005 10:27:31 -0400 Message-ID: <15653.1113316051@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.27 tagged_above=0 required=5 tests=AWL, BIZ_TLD X-Spam-Level: X-Archive-Number: 200504/156 X-Sequence-Number: 17169 =?ISO-8859-1?Q?=22Lic=2E_Guillermo_Gonz=E1lez=22?= 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