| From: | diego(at)adminsa(dot)com | 
|---|---|
| To: | pgsql-es-ayuda(at)postgresql(dot)org | 
| Subject: | Re: Pasar a mínuscula los acentos | 
| Date: | 2005-11-16 16:30:10 | 
| Message-ID: | 20051116133010.mfy2ccf4pykkgwcc@www.adminsa.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-es-ayuda | 
Quoting Alvaro Herrera <alvherre(at)commandprompt(dot)com>:
> Xavier Vidal escribió:
>> Saludos
>>
>> Estoy intentando pasar a mínusculas una cadena que tengo guardada en 
>> la base de datos.
>>
>> La base de datos se creó con LATIN1, y la cadena es "VÁZQUEZ". Cuando hago:
>> Select lower("VÁZQUEZ");
>>
>> Me sale lo siguiente:
>>
>> lower
>> -------
>> vÁzquez
>
> Works for me:
>
> alvherre=# show server_encoding;
> server_encoding
> -----------------
> LATIN1
> (1 fila)
>
> alvherre=# select lower('VÁSQUEZ');
>  lower
> ---------
> vásquez
> (1 fila)
>
>
> Yo creo que tu base de datos no es latin1 como tu crees.
>
> --
> Alvaro Herrera                                http://www.CommandPrompt.com/
> The PostgreSQL Company - Command Prompt, Inc.
>
> ---------------------------(fin del mensaje)---------------------------
> TIP 5: ¿Has leído nuestro extenso FAQ?
>
>         http://www.postgresql.org/files/documentation/faqs/FAQ.html
>
funciona tambien para mí, con UTF8.
mag=# select lower ('VÁZQUEZ');
  lower
---------
vázquez
(1 fila)
mag=# show server_encoding;
server_encoding
-----------------
UTF8
(1 fila)
mag=# show client_encoding;
client_encoding
-----------------
UTF8
(1 fila)
Diego.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jaime Casanova | 2005-11-16 17:32:22 | Re: ERROR: relation "trenesseq" already exists | 
| Previous Message | Manuel Sugawara | 2005-11-16 16:28:29 | Re: Pasar a mínuscula los acentos |