From: Antony Paul <antonypaul24@hotmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: [JDBC] Char(100) fields
Date: Thu, 23 Sep 2004 09:27:28 +0530
Message-ID: <BAY15-DAV15olmRBaYF000044bb@hotmail.com> (raw)
References: <003401c4a0d1$c9ea48c0$1001a8c0@shx.com.br>
<18347.1095882643@sss.pgh.pa.us>
Can you please tell me how to know the encoding of the databse ?
rgds
Antony Paul
----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Waldomiro" <wmiro@ig.com.br>
Cc: <pgsql-jdbc@postgresql.org>
Sent: Thursday, September 23, 2004 1:20 AM
Subject: Re: [JDBC] Char(100) fields
> "Waldomiro" <wmiro@ig.com.br> writes:
> > now I have an error "value too long for type character(100)"
>
> Perhaps you are using unicode but forgot to set up the database with the
> proper encoding? The DB is going to count bytes not characters if it's
> in SQL_ASCII encoding, for example.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: antonypaul24@hotmail.com, pgsql-general@postgresql.org
Subject: Re: [JDBC] Char(100) fields
In-Reply-To: <BAY15-DAV15olmRBaYF000044bb@hotmail.com>
References: <003401c4a0d1$c9ea48c0$1001a8c0@shx.com.br> <18347.1095882643@sss.pgh.pa.us> <BAY15-DAV15olmRBaYF000044bb@hotmail.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