pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@gmail.com>
To: pgsql-odbc@postgresql.org
Cc: Kim Mortensen <kimfmx@gmail.com>
Subject: Re: problem connecting via ODBC when unicode (now in correct forum.).
Date: Fri, 21 Jan 2011 06:57:30 -0800
Message-ID: <201101210657.30332.adrian.klaver@gmail.com> (raw)
In-Reply-To: <AANLkTinuVY9b8_unwNBL+-ijWJn8hA=mrAdapkwAPM4v@mail.gmail.com>
References: <AANLkTinuVY9b8_unwNBL+-ijWJn8hA=mrAdapkwAPM4v@mail.gmail.com>

On Friday 21 January 2011 6:29:07 am Kim Mortensen wrote:
> Hi,
>
> I have have a question that annoys me incredibly.
>
> I have a "Login Roles" that include special chars like "ÆØÅ" (same in
> password) that accesses a view. however this is not possible, as the
> connector does not recognize the user.
>
> ------------------------------
> -----
> FATAL: no pg_hba.conf entry for host "127.0.0.1", user "ÆØÅ", database
> "mydb", SSL off.
> -----------------------------------
>
> However if I create another "Login Roles" with the name "abc" (same in
> password), I can successfull connect and access the view.
>
> I have almost tried all combinations of client_encoding, have tried to set
> configuration string on the connector.
>
> Database is build with: "...... --encoding=UNICODE --locale=C
> --lc-collate=C".
>
> If I use pgadmin, everything in the database looks perfect, and the unicode
> chars are represented correctly (Login role ÆØÅ exists).
>
> Any help much appriciated.
>
> Best Regards
> Kim Mortensen

To eliminate possibilities.
Can you connect to the database via means other than ODBC using the Role that 
has the special characters?
What are the lines in your pg_hba file?

-- 
Adrian Klaver
adrian.klaver@gmail.com



view thread (15+ messages)  latest in thread

Message-ID: <201101210657.30332.adrian.klaver@gmail.com>
Permalink:  ../201101210657.30332.adrian.klaver@gmail.com/
Also on:    postgresql.org/message-id/201101210657.30332.adrian.klaver@gmail.com

 · 

reply

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-odbc@postgresql.org
  Cc: adrian.klaver@gmail.com, kimfmx@gmail.com
  Subject: Re: problem connecting via ODBC when unicode (now in correct forum.).
  In-Reply-To: <201101210657.30332.adrian.klaver@gmail.com>
  References: <AANLkTinuVY9b8_unwNBL+-ijWJn8hA=mrAdapkwAPM4v@mail.gmail.com> <201101210657.30332.adrian.klaver@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