From: Ader Javier <javierader@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Authentication failed when Password contains Japaneese Charecters
Date: Wed, 21 Apr 2010 01:10:36 -0300
Message-ID: <4BCE7ABC.8030502@gmail.com> (raw)
In-Reply-To: <x2ka7ddbfcf1004201923pc4c50f97wedecea492f4bffcd@mail.gmail.com>
References: <q2ua7ddbfcf1004201711w90e5f323off7afcf12a0fbad4@mail.gmail.com>
<8844.1271809392@sss.pgh.pa.us>
<s2ya7ddbfcf1004201729te1e6c1bcz6d6d64d1a4a5ebd7@mail.gmail.com>
<l2ga7ddbfcf1004201735g132fa19dhbef647a0625bfb6f@mail.gmail.com>
<10484.1271812681@sss.pgh.pa.us>
<p2wa7ddbfcf1004201907t80df30dela21fef5d30e90f0a@mail.gmail.com>
<x2ka7ddbfcf1004201923pc4c50f97wedecea492f4bffcd@mail.gmail.com>
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
> <shivenderd@gmail.com <mailto:shivenderd@gmail.com>> wrote:
>
> Thanks. Where should I look for this property?
>
> Thanks,
> Shivender
>
>
>
>
> On Tue, Apr 20, 2010 at 6:18 PM, Tom Lane <tgl@sss.pgh.pa.us
> <mailto:tgl@sss.pgh.pa.us>> wrote:
>
> Shivender Devarakonda <shivenderd@gmail.com
> <mailto:shivenderd@gmail.com>> 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
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: javierader@gmail.com
Subject: Re: Authentication failed when Password contains Japaneese Charecters
In-Reply-To: <4BCE7ABC.8030502@gmail.com>
References: <q2ua7ddbfcf1004201711w90e5f323off7afcf12a0fbad4@mail.gmail.com> <8844.1271809392@sss.pgh.pa.us> <s2ya7ddbfcf1004201729te1e6c1bcz6d6d64d1a4a5ebd7@mail.gmail.com> <l2ga7ddbfcf1004201735g132fa19dhbef647a0625bfb6f@mail.gmail.com> <10484.1271812681@sss.pgh.pa.us> <p2wa7ddbfcf1004201907t80df30dela21fef5d30e90f0a@mail.gmail.com> <x2ka7ddbfcf1004201923pc4c50f97wedecea492f4bffcd@mail.gmail.com> <4BCE7ABC.8030502@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox