Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5E8B91337B6C for ; Fri, 21 Jan 2011 10:57:40 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 36238-09 for ; Fri, 21 Jan 2011 14:57:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id C626F1337B4A for ; Fri, 21 Jan 2011 10:57:32 -0400 (AST) Received: by pwj3 with SMTP id 3so311507pwj.19 for ; Fri, 21 Jan 2011 06:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:reply-to:to:subject:date:user-agent:cc :references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=DTrQf37zG7DaAJM3rDX2iC4aFlNbqmQ+QytzAkV4OdU=; b=F72ACP/ek/CZWz5MNFkuNW6MHlMtcjUwt+3gzkI3AC4mDm8OW1ZV2XjCywMXtW7VJu qBUwRKorDP+Hg5Qv/G3LS/liD9/RnYhmY+CtLVgbGIHVLMdaYpWXVi7OvrUXkhpSgWjT ztmzzVKl/X5hKtRi40wdMCxA5VElXeTp0pypE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=MI3JcyqRrFKNQXwOJl2EZbe6KzSj+22mdYjPVc1sYoh3fvhm9T8ae/7iXSeLzpUU9b sUX1maqFYmYFwmQ8878uWAd+Y7A13eGIod6+l1ueRCgmpMSFA3oKKxG2mG7Lcze0L9lG c0WIEJCSmFCROmPIa4rn7s1eA95D5G75Z1NaQ= Received: by 10.142.139.3 with SMTP id m3mr721458wfd.355.1295621852919; Fri, 21 Jan 2011 06:57:32 -0800 (PST) Received: from tucker.local (c-24-17-164-54.hsd1.wa.comcast.net [24.17.164.54]) by mx.google.com with ESMTPS id x18sm12768382wfa.11.2011.01.21.06.57.31 (version=SSLv3 cipher=RC4-MD5); Fri, 21 Jan 2011 06:57:31 -0800 (PST) From: Adrian Klaver Reply-To: adrian.klaver@gmail.com To: pgsql-odbc@postgresql.org Subject: Re: problem connecting via ODBC when unicode (now in correct forum.). Date: Fri, 21 Jan 2011 06:57:30 -0800 User-Agent: KMail/1.9.10 Cc: Kim Mortensen References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201101210657.30332.adrian.klaver@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.589 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201101/6 X-Sequence-Number: 10553 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 "=C6=D8=C5" (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 "=C6=D8=C5", datab= ase > "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=3DUNICODE --locale=3DC > --lc-collate=3DC". > > If I use pgadmin, everything in the database looks perfect, and the unico= de > chars are represented correctly (Login role =C6=D8=C5 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 th= at=20 has the special characters? What are the lines in your pg_hba file? =2D-=20 Adrian Klaver adrian.klaver@gmail.com