Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 58AF06322D8 for ; Wed, 21 Apr 2010 02:45:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 10465-08 for ; Wed, 21 Apr 2010 05:44:53 +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 1ECF862E522 for ; Wed, 21 Apr 2010 02:44:55 -0300 (ADT) Received: by iwn17 with SMTP id 17so1284654iwn.19 for ; Tue, 20 Apr 2010 22:44:54 -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=uCvVXZb06S1MgOh5uPfNPdNiR2fzVuJxwwUlJ5hyjmE=; b=coGg+90anXEE12qey53cqozYLVwg6ZBJ35J4OXxljSmkf2vSgVKJoskQ2ddLJ38BUn YlGqXp0ebXsCKNGM+ECm1LvFbPSl5H2UrppT3yTXd2hv+hTjtlvJxk131boOQSX2Iptr vBlLYc9ovrqBXA60VdlZdJn2Yo6dr4wPZIetU= 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=WYvD9u0XbumkaIL4u+FtgEI8ulaFqX3GNFPBEVnC+3RE6+hdCcdmhBBeNM/xY5M+PN w8EBdM+AC1sToDBShfc5zKX9pWyvJTcCjTqcIKAoGfQef9mHZInBMy6rOBwuMN9y6cO3 0mSM6o18S3RWHHxm3Lf4yidKLOnzV4SzqXdUs= MIME-Version: 1.0 Received: by 10.231.206.197 with HTTP; Tue, 20 Apr 2010 22:44:54 -0700 (PDT) In-Reply-To: <4BCE7ABC.8030502@gmail.com> References: <8844.1271809392@sss.pgh.pa.us> <10484.1271812681@sss.pgh.pa.us> <4BCE7ABC.8030502@gmail.com> Date: Tue, 20 Apr 2010 22:44:54 -0700 Received: by 10.231.161.143 with SMTP id r15mr2695738ibx.62.1271828694258; Tue, 20 Apr 2010 22:44:54 -0700 (PDT) Message-ID: Subject: Re: Authentication failed when Password contains Japaneese Charecters From: Shivender Devarakonda To: Ader Javier Cc: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=001636c5c0758953910484b8b154 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/51 X-Sequence-Number: 20462 --001636c5c0758953910484b8b154 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I set the following property in postgresql.conf: client_encoding =3D UTF-8 # actually, defaults to database # encoding I see the same problem after this also... actaully my DB already shows the encoding format as UTF-8 so according to the comments the client encoding should default to UTF-8. Please let me know if I miss anything Thanks, Shivender On Tue, Apr 20, 2010 at 9:10 PM, Ader Javier wrote: > Try change the encoding of sesssions at database nivel to UTF8; this > encoding is taked as default for sessions > http://www.postgresql.org/docs/8.1/static/sql-alterdatabase.html ; try > ALTER DATABASE databasename SET ENCODING TO 'UTF8' > (or maybe UFT8 directly). > or if this don't work try > ALTER DATABASE databasename SET client_encoding TO 'UTF8' > or.... from Java set the econding of connections on creation or > configuration time (I don't know where exactly, but sure it's possible). > > Shivender Devarakonda escribi=F3: > > > > When I did the psql -l I see the following DBs in my local environment: > > > > C:\PostgreSQL\bin>psql -l > > List of databases > > Name | Owner | Encoding > > -----------+----------+----------- > > cmdb | admin | UTF8 > > postgres | postgres | SQL_ASCII > > template0 | postgres | SQL_ASCII > > template1 | postgres | SQL_ASCII > > > > I am using cmdb which is UTF8. > > > > I think it is consistent with my application? any thoughts what might > > be wrong. > > > > Thanks, > > Shivender > > On Tue, Apr 20, 2010 at 7:07 PM, Shivender Devarakonda > > > wrote: > > > > Thanks. Where should I look for this property? > > > > Thanks, > > Shivender > > > > > > > > > > On Tue, Apr 20, 2010 at 6:18 PM, Tom Lane > > wrote: > > > > Shivender Devarakonda > > writes: > > > I did not give any explicit encoding while creating the DB. > > I am running > > > postgres on Windows XP system. > > > > Well, you should look at what server_encoding is set to, then. > > If it's not UTF-8 then that's likely the source of the problem. > > > > regards, tom lane > > > > > > > > > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > --001636c5c0758953910484b8b154 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I set the following property=A0 in postgresql.conf:
=A0
client_encoding =3D UTF-8=A0=A0# actually, defaults to database
=A0= =A0=A0=A0=A0# encoding
=A0
I see the same problem after this also...

=A0
actaully my DB already shows the encoding format as UTF-8 so according= to the comments the client encoding should default to UTF-8.
=A0
Please let me know if I miss anything
=A0
=A0
=A0
Thanks,
Shivender

=A0
On Tue, Apr 20, 2010 at 9:10 PM, Ader Javier <javierader@gmail= .com> wrote:
Try change the encoding of sesssions at database nivel to= UTF8; this
encoding is taked as default for sessions
http://www.postgresql.org/docs/8.1/static/sql-alterdatabase.html ;= try
ALTER DATABASE databasename SET ENCODING TO 'UTF8'
(or maybe UFT= 8 directly).
or if this don't work try
ALTER DATABASE databasenam= e SET client_encoding TO 'UTF8'
or.... from Java set the econdin= g of connections on creation or
configuration time (I don't know where exactly, but sure it's possi= ble).

Shivender Devarakonda escribi=F3:
>
> When I did the psql -l I see the following DBs in my= local environment:
>
> C:\PostgreSQL\bin>psql -l
> = =A0 =A0 =A0 =A0 List of databases
> =A0 =A0Name =A0 =A0| =A0Owner =A0= | Encoding
> -----------+----------+-----------
> =A0cmdb =A0 =A0 | admin =A0 =A0| UTF8
> =A0postgres =A0| postgre= s | SQL_ASCII
> =A0template0 | postgres | SQL_ASCII
> =A0templa= te1 | postgres | SQL_ASCII
>
> I am using cmdb which is UTF8.>
> I think it is consistent with my application? any thoughts w= hat might
> be wrong.
>
> Thanks,
> Shivender
> On Tue, Ap= r 20, 2010 at 7:07 PM, Shivender Devarakonda
> <shivende= rd@gmail.com <mailto:shivend= erd@gmail.com>> wrote:
>
> =A0 =A0 Thanks. Where shou= ld I look for this property?
>
> =A0 =A0 Thanks,
> =A0 =A0 Shivender
>
>
&= gt;
>
> =A0 =A0 On Tue, Apr 20, 2010 at 6:18 PM, Tom Lane <<= a href=3D"mailto:tgl@sss.pgh.pa.us">tgl@sss.pgh.pa.us
> =A0 =A0 <mailto:tgl@sss.pgh.pa.us>> wrote:
>
> =A0 =A0 =A0 =A0 Sh= ivender Devarakonda <shivenderd@= gmail.com
> =A0 =A0 =A0 =A0 <mailto:shivenderd@gmail.com>> writes:
> =A0 =A0 =A0= =A0 > I did not give any explicit encoding while creating the DB.
&g= t; =A0 =A0 =A0 =A0 I am running
> =A0 =A0 =A0 =A0 > postgres on Windows XP system.
>
> = =A0 =A0 =A0 =A0 Well, you should look at what server_encoding is set to, th= en.
> =A0 =A0 =A0 =A0 If it's not UTF-8 then that's likely th= e source of the problem.
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0regards, tom lane
>
>
>



--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpre= f/pgsql-jdbc

--001636c5c0758953910484b8b154--