Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id EE0F962E522 for ; Wed, 21 Apr 2010 01:08:59 -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 23645-10 for ; Wed, 21 Apr 2010 04:08:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id 09EBA632A66 for ; Wed, 21 Apr 2010 01:08:46 -0300 (ADT) Received: by gyg13 with SMTP id 13so3603038gyg.19 for ; Tue, 20 Apr 2010 21:08:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=I9YIaEg9rFzTval7HyavhsczQ/muh4gSHuuPbW5gP4k=; b=DPzh5mP/9Nu4Iksia9afvWcPnrGrHRkgZy4GpiM1q1g9okGSa+hgaUMazQjyBe6anD Gt9hMSa1k3BnM4yrHbSGYiYsS1t2yLNubSiYEoqllyJdUCZp8DrCgMDZktDME1Wjpg4u 1WRBI9YBaMbRlsPs5iuF5Ddu9Cwr7rIbN7r1g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=CfHk8CC4ecnbvmt/Wf6Dci6L6oPZ8XpK8Ihsy75aR0csOvspg8rPQ4GIHJAr0SaFZ2 uAkvP8viSvSCC7bAm8KREAZZ5YLBchmE9paiDM/l65ZczQ62YRN7c1WsbzsD8aimMlnL UAcmVzl/SZPKWWK3r4cDfOxR9ciIwJnvg1Uvk= Received: by 10.101.28.8 with SMTP id f8mr12675944anj.190.1271822919215; Tue, 20 Apr 2010 21:08:39 -0700 (PDT) Received: from [192.168.1.100] ([190.177.69.30]) by mx.google.com with ESMTPS id 26sm63785099anx.3.2010.04.20.21.08.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 20 Apr 2010 21:08:38 -0700 (PDT) Message-ID: <4BCE7ABC.8030502@gmail.com> Date: Wed, 21 Apr 2010 01:10:36 -0300 From: Ader Javier User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Authentication failed when Password contains Japaneese Charecters References: <8844.1271809392@sss.pgh.pa.us> <10484.1271812681@sss.pgh.pa.us> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.04 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1.929, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201004/50 X-Sequence-Number: 20461 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ó: > > 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 > > >