Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4015B632B4E for ; Mon, 26 Jul 2010 23:10:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 87135-06 for ; Tue, 27 Jul 2010 02:10:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id A56AA63295D for ; Mon, 26 Jul 2010 23:10:02 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 70C7E36438F; Mon, 26 Jul 2010 19:09:55 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j86FU92whUZH; Mon, 26 Jul 2010 19:09:53 -0700 (PDT) Received: from alvh.no-ip.org (unknown [186.9.141.120]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 6373636438E; Mon, 26 Jul 2010 19:09:51 -0700 (PDT) Received: by alvh.no-ip.org (Postfix, from userid 1000) id 3E55843820A; Mon, 26 Jul 2010 22:09:36 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: pgsql-admin Subject: Re: upper and UTF-8 From: Alvaro Herrera To: Benjamin Krajmalnik In-reply-to: References: Date: Mon, 26 Jul 2010 22:09:36 -0400 Message-Id: <1280196392-sup-6027@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001 X-Spam-Level: X-Archive-Number: 201007/184 X-Sequence-Number: 35203 Excerpts from Benjamin Krajmalnik's message of lun jul 26 17:03:54 -0400 2010: > I just used the upper(text) function on a database which is utf8 encoded > and which has spanish text. > > All of the regular characters were properly converted, except for > characters which had accents. FWIW it works fine for me: alvherre=# show lc_collate ; lc_collate ------------ es_CL.utf8 (1 fila) alvherre=# select upper('benjamín'); upper ---------- BENJAMÍN (1 fila) I suspect that the problem is an incorrect client_encoding setting.