Re: upper and UTF-8

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Benjamin Krajmalnik <kraj(at)servoyant(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: upper and UTF-8
Date: 2010-07-27 02:09:36
Message-ID: 1280196392-sup-6027@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2010-07-27 03:12:08 Re: upper and UTF-8
Previous Message Tom Lane 2010-07-27 01:33:52 Re: postgresql-server-8.4.4-1PGDG.el5 - ERROR: could not write block 503414 of temporary file: No space le, ft on device