X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 596CC3A2D76 for ; Mon, 17 Jan 2005 12:19:32 +0000 (GMT) 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 90338-07 for ; Mon, 17 Jan 2005 12:19:19 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by svr1.postgresql.org (Postfix) with ESMTP id AC5FE3A2CDF for ; Mon, 17 Jan 2005 12:19:20 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 71so480237wra for ; Mon, 17 Jan 2005 04:19:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=gl2ttGHnIw3EDmJd/zXf9yUXihiILSXN2h3T7MBIWAJew7asTUkzeaMBic+e1lueHzLo/9FRKmveYmxRuG6Upcq2xQ7NP/IoOUein2qhw/w6o6eUNOzXOp/LTvgLQuAHPFn/8mppr+8VBfSGg+I1L4VwQvCN2oT/dAzRFBXiAUw= Received: by 10.54.50.13 with SMTP id x13mr168278wrx; Mon, 17 Jan 2005 04:19:21 -0800 (PST) Received: by 10.54.31.22 with HTTP; Mon, 17 Jan 2005 04:19:21 -0800 (PST) Message-ID: <2989532e050117041972496@mail.gmail.com> Date: Mon, 17 Jan 2005 17:49:21 +0530 From: Antony Paul Reply-To: Antony Paul To: pgsql-jdbc@postgresql.org Subject: Re: Problem : Japanese Character Support In-Reply-To: <87wtucuv2c.fsf@meuh.mnc.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <87wtucuv2c.fsf@meuh.mnc.ch> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.54 tagged_above=0 required=5 tests=FROM_ENDS_IN_NUMS, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200501/164 X-Sequence-Number: 12044 Read this page. http://www.postgresql.org/docs/current/static/multibyte.html I think at some versions it was possible to specify the character encoding in the JDBC URL like this jdbc:postgresql://192.168.0.1/antony?charSet=LATIN1 rgds Antony Paul On 17 Jan 2005 12:57:47 +0100, Guillaume Cottenceau wrote: > "Rashmi" writes: > > > Hello, > > > > I have one problem. I am working on java and postgre sql. The data in > > postgre sql is in japanese > > When i used JDBC code in java like select statement then i get the > > resultset but in that resultset instead of japanese data , empty > > string is coming so i am not getting japanese data in java from > > postgre sql. > > Its not giving error but return empty string. But, when i used english > > data, its working fine > > > > What could be the problem? > > Is it that postgre's JDBC driver is not supporting japanese character. > > Using both postgres 7.2 and 7.4 I had no problem at all mixing > any type of language (currently tested english, french and > japanese on the same page). I have set the database in UTF-8 at > creation time. I use UTF-8 back and forth in my webapp (which > uses struts). > > -- > Guillaume Cottenceau > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend >