Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 0756E632474 for ; Tue, 20 Apr 2010 21:35:37 -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 82481-01 for ; Wed, 21 Apr 2010 00:35:26 +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 72B02632919 for ; Tue, 20 Apr 2010 21:35:26 -0300 (ADT) Received: by iwn17 with SMTP id 17so1110875iwn.19 for ; Tue, 20 Apr 2010 17:35:25 -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=a1DG7qczAN3cJ9zr9F4ra1arfanqMw0PsenI8NcOvJ0=; b=ew9kv9ULyiRZzXxaLUNSZgY9JuiUk43OG/CKv7TTsKEGKAmj+RyUUpeIUe9vcIr+R6 +xhCsU63IUqCZxh1qY4cqtzqn49avo9GN7NnUL2yLc+z5bCxBkqNgimLC21CGCUQO5Hr yQ8UFxHLzdnN0F4so8IAsoW5QUtm4VGAJVHmA= 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=JfJ0DEnpeKNvEV4qBnStI148ZKj+zE+vcj3CW721gUxQzKsvqRma2R5WipbIOWD7sE 0DExipA/lTRYyqnAipxaEg9T7odzRwP0ovQpMWrBkTLXy6nA0OJyouigJNTbs3MXay3k u+9MQ1DYb364yUOpBzTwMDEmag8ftwvpVo/Eg= MIME-Version: 1.0 Received: by 10.231.199.203 with HTTP; Tue, 20 Apr 2010 17:35:25 -0700 (PDT) In-Reply-To: References: <8844.1271809392@sss.pgh.pa.us> Date: Tue, 20 Apr 2010 17:35:25 -0700 Received: by 10.231.167.208 with SMTP id r16mr2621568iby.57.1271810125045; Tue, 20 Apr 2010 17:35:25 -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=005045015a59b99f890484b45e84 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/43 X-Sequence-Number: 20454 --005045015a59b99f890484b45e84 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I did not give any explicit encoding while creating the DB. I am running postgres on Windows XP system. Thanks for looking in to this. Regards, Shivender On Tue, Apr 20, 2010 at 5:29 PM, Shivender Devarakonda wrote: > 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 us= es >> > Postgres SQL JDBC driver. I have a user "admin" with the password havi= ng >> > 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 >> > > --005045015a59b99f890484b45e84 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I did not give any explicit encoding while creating the DB. I am runni= ng postgres on Windows XP system.
=C2=A0
Thanks for looking in to this.
=C2=A0
Regards,
Shivender

On Tue, Apr 20, 2010 at 5:29 PM, Shivender Devar= akonda <shiven= derd@gmail.com> wrote:
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> wrote:
Shivender Devarakonda <shivenderd@gmail.com> writes:
> I am using Postg= res SQL version 8.3 server and I have a client that uses
> Postgres S= QL JDBC 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


--005045015a59b99f890484b45e84--