Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gk9SH-0000YA-At for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jan 2019 15:19:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gk9SG-0003dI-29 for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Jan 2019 15:19:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gk9SF-0003dB-Oj for pgsql-bugs@lists.postgresql.org; Thu, 17 Jan 2019 15:19:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gk9SD-0000u4-3p for pgsql-bugs@postgresql.org; Thu, 17 Jan 2019 15:19:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0HFJWvG013122; Thu, 17 Jan 2019 10:19:32 -0500 From: Tom Lane To: "Jadhav, Manadeep (BHGE)" cc: "pgsql-bugs@postgresql.org" , "Periyaswamy, Balakrishnan (BHGE, Non-GE)" , "Sabale, Sachin (BHGE)" , "Kapoor, Chandan I (BHGE)" Subject: Re: Issue while non-english character in userid and password In-reply-to: References: Comments: In-reply-to "Jadhav, Manadeep (BHGE)" message dated "Thu, 17 Jan 2019 12:55:29 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <13120.1547738372.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 17 Jan 2019 10:19:32 -0500 Message-ID: <13121.1547738372@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Jadhav, Manadeep (BHGE)" writes: > We are using postgres server install on windows 7 32 bit machine in Span= ish and for database username and password we have used non-English charac= ter =C3=AD, with this userid and password we are able to connect the datab= ase but when we try to run the backup for same db using pg_dump utility it= fails saying error as "password authentication failed". Please let us kno= w how can we handle this issue. If you use characters outside the base ASCII set in user or database names or passwords, it's up to you to ensure that those characters are always sent the same way in connection requests. Postgres can't do any encoding conversion on connection requests since it doesn't know what character set the client is using. Presumably what's happening here is that the backup script isn't running with the same code page you used when creating the password. regards, tom lane