X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1D6E0329E45 for ; Thu, 23 Sep 2004 04:52:09 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36545-07 for ; Thu, 23 Sep 2004 03:52:02 +0000 (GMT) Received: from hotmail.com (bay15-dav15.bay15.hotmail.com [65.54.184.119]) by svr1.postgresql.org (Postfix) with ESMTP id 79150329E48 for ; Thu, 23 Sep 2004 04:52:01 +0100 (BST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 22 Sep 2004 20:52:00 -0700 Received: from 202.71.147.145 by bay15-dav15.bay15.hotmail.com with DAV; Thu, 23 Sep 2004 03:51:12 +0000 X-Originating-IP: [202.71.147.145] X-Originating-Email: [antonypaul24@hotmail.com] X-Sender: antonypaul24@hotmail.com From: "Antony Paul" To: "pgsql-general" References: <003401c4a0d1$c9ea48c0$1001a8c0@shx.com.br> <18347.1095882643@sss.pgh.pa.us> Subject: Re: [JDBC] Char(100) fields Date: Thu, 23 Sep 2004 09:27:28 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 23 Sep 2004 03:52:00.0592 (UTC) FILETIME=[AE254500:01C4A120] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200409/979 X-Sequence-Number: 66185 Can you please tell me how to know the encoding of the databse ? rgds Antony Paul ----- Original Message ----- From: "Tom Lane" To: "Waldomiro" Cc: Sent: Thursday, September 23, 2004 1:20 AM Subject: Re: [JDBC] Char(100) fields > "Waldomiro" 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) >