pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: nahum castro <pedro1_72@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Re: [JDBC] problem with spanish characters
Date: Mon, 17 May 2004 09:05:05 -0500 (CDT)
Message-ID: <20040517140505.57023.qmail@web13903.mail.yahoo.com> (raw)
In-Reply-To: <92EFB0BEDD24E9419E2CD9A2BD35DAEA043D09@bmsrv001.madrid.bilbomatica.es>

 --- Freddy Villalba Arias
<fvillalba@madrid.bilbomatica.es> 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



view thread (2+ messages)

Message-ID: <20040517140505.57023.qmail@web13903.mail.yahoo.com>
Permalink:  ../20040517140505.57023.qmail@web13903.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040517140505.57023.qmail@web13903.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pedro1_72@yahoo.com
  Subject: Re: [JDBC] problem with spanish characters
  In-Reply-To: <20040517140505.57023.qmail@web13903.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox