Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9CC4A633ECD for ; Tue, 20 Apr 2010 21:29:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 81307-02-6 for ; Wed, 21 Apr 2010 00:29:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f187.google.com (mail-iw0-f187.google.com [209.85.223.187]) by mail.postgresql.org (Postfix) with ESMTP id 6D433633CBA for ; Tue, 20 Apr 2010 21:29:21 -0300 (ADT) Received: by iwn17 with SMTP id 17so1107142iwn.19 for ; Tue, 20 Apr 2010 17:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=EsNKxlDsP7Yn9I+8FJ/rlRfWHI3+R8smPbC6oLNTCRU=; b=j4NKfeEazzncqxWX1Mgn/LVMwXcRDAGf3gcPFibbkRUKKwMIhBtrC54kK298yVyGaq kYAzMYm0NU12p0ePW/2PDY8h0q3kizj7HkncINC+c7B6HVrLr6sF7IUliwasRroZ67Bd 9urfnW03r6Uf4w660SAikXs2JwCL2Vk9okBfs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Q4/CU0T7H69q1Fmjvt/Lcx5TsHTwjYVu6tvPzu5tTaAcpnkMVSsrgYYilcb/Nrz/SH H5EpzYPCWIYOjIkwM8Z5dPDNRXmfBJuGrACMOMgA8G+K0/dUwsZQRpmc3QTzo6PFWiJk eMamljwFPuLtfb6f3urhrGBVsThpJUYbGyugs= MIME-Version: 1.0 Received: by 10.231.199.203 with HTTP; Tue, 20 Apr 2010 17:29:19 -0700 (PDT) In-Reply-To: <8844.1271809392@sss.pgh.pa.us> References: <8844.1271809392@sss.pgh.pa.us> Date: Tue, 20 Apr 2010 17:29:19 -0700 Received: by 10.231.85.200 with SMTP id p8mr543779ibl.35.1271809759971; Tue, 20 Apr 2010 17:29:19 -0700 (PDT) Message-ID: Subject: Re: Authentication failed when Password contains Japaneese Charecters From: Shivender Devarakonda To: Tom Lane Cc: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=001485ea3afaf7096b0484b4486b X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/42 X-Sequence-Number: 20453 --001485ea3afaf7096b0484b4486b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I explicitly changed the property file.encoding to UTF-8 before I run my application. I am sure application is sending the password in UTF-8 byte array[]. Are you talking about server session? Thanks, Shivender On Tue, Apr 20, 2010 at 5:23 PM, Tom Lane wrote: > Shivender Devarakonda writes: > > I am using Postgres SQL version 8.3 server and I have a client that use= s > > Postgres SQL JDBC driver. I have a user "admin" with the password havin= g > > japaneese charecters =E5=BD=A2=E5=BC=8F. > > Just a guess, but I suspect it's an encoding issue. I expect JDBC would > send the password in utf8 encoding. Maybe you defined the password in > a session that was using a different encoding? > > regards, tom lane > --001485ea3afaf7096b0484b4486b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I explicitly changed the property file.encoding to UTF-8 before I run = my application. I am sure application is sending the password in UTF-8 byte= array[]. Are you talking about server session?
=C2=A0
Thanks,
Shivender

On Tue, Apr 20, 2010 at 5:23 PM, Tom Lane <tgl@sss.pgh.pa.us&= gt; wrote:
Shivender Devarakonda <shivenderd@gmail.com> writes:
> I am using Postgres S= QL version 8.3 server and I have a client that uses
> Postgres SQL JD= BC driver. I have a user "admin" with the password having
> japaneese charecters =E5=BD=A2=E5=BC=8F.

Just a guess, bu= t I suspect it's an encoding issue. =C2=A0I expect JDBC would
send t= he password in utf8 encoding. =C2=A0Maybe you defined the password in
a = session that was using a different encoding?

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0regards, tom lane

--001485ea3afaf7096b0484b4486b--