X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 664A4D1B26F for ; Mon, 17 May 2004 11:05:22 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 96131-07 for ; Mon, 17 May 2004 11:05:05 -0300 (ADT) Received: from web13903.mail.yahoo.com (web13903.mail.yahoo.com [216.136.175.29]) by svr1.postgresql.org (Postfix) with SMTP id CE895D1B169 for ; Mon, 17 May 2004 11:05:00 -0300 (ADT) Message-ID: <20040517140505.57023.qmail@web13903.mail.yahoo.com> Received: from [200.76.38.251] by web13903.mail.yahoo.com via HTTP; Mon, 17 May 2004 09:05:05 CDT Date: Mon, 17 May 2004 09:05:05 -0500 (CDT) From: =?iso-8859-1?q?nahum=20castro?= Subject: Re: [JDBC] problem with spanish characters To: pgsql-sql@postgresql.org In-Reply-To: <92EFB0BEDD24E9419E2CD9A2BD35DAEA043D09@bmsrv001.madrid.bilbomatica.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS, RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200405/150 X-Sequence-Number: 17864 --- Freddy Villalba Arias escribió: > Hello everybody, > > > > I'm not sure if this is a bug on the upper/lower > command or anywhere else. > > > > This is the problem: > > > > > > I have a DB that uses 'UNICODE' encoding. PostgreSQL > version is 7.4.2. > > > > > > I have a field that holds characters, including > characters like 'Ñ' (lowercase version is 'ñ'). The > name of the field is 'ccaa_ds_ccaa' (table name is > 'ccaa'). > Hola Freddy, he encontrado el mismo problema con psql, ni sisquiera me permite insertar caracteres con Ñ en bases de datos UNICODE. Siempre he usado LATIN1 para mis bases de datos, lo que parece ser el problema es el la codificación del sistema operativo, en Fedora Core 1 en mi archivo quite las referncias a UTF-8 o UNICODE en mi archivo /etc/sysconfig/i18n LANG="es_MX" SUPPORTED="es_MX:es" SYSFONT="latarcyrheb-sun16" Me entro la duda e hice una prueba creando una tabla con codificación UNICODE y tengo unos resultados extraños: Primero no puedo insertar datos con Ñ o ñ, enes=# insert into enes(nombre) values('CATALUÑA'); ERROR: secuencia de bytes no válida para codificación "UNICODE": 0xd141 Pero con LATIN1 nunca he tenido este problema Segundo no puedo obtener el describe de la base de datos: enes=# \d ERROR: secuencia de bytes no válida para codificación "UNICODE": 0xed6e64 Voy a hacer la prueba con el archivo(fichero) i18n en codificación UTF-8 y luego te digo que paso. Nota: el postgres lo instale con RPMS, voy a tratar tambien con el compilado del codigo fuente. Saludos desde México. ===== -- Nahum Castro Leon, Guanajuato, Mexico e-mail: pedro1_72 at yahoo dot com _________________________________________________________ Do You Yahoo!? La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx