Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYYvX-00035f-Jg for pgsql-general@arkaria.postgresql.org; Fri, 30 Oct 2020 18:15:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kYYvW-0006ba-DN for pgsql-general@arkaria.postgresql.org; Fri, 30 Oct 2020 18:15:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYYvW-0006bT-69 for pgsql-general@lists.postgresql.org; Fri, 30 Oct 2020 18:15:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYYvP-0003DT-FF for pgsql-general@lists.postgresql.org; Fri, 30 Oct 2020 18:15:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 09UIEqRP101799; Fri, 30 Oct 2020 14:14:52 -0400 From: Tom Lane To: David Gauthier cc: Tim Clarke , "pgsql-general@lists.postgresql.org" Subject: Re: What's the best way to translate MS generated translations of user input to what the user actually typed prior to insert or update into PG backend table ? In-reply-to: References: <9a237283-d0d6-08ac-ae6b-f224c71c19ef@minerva.info> Comments: In-reply-to David Gauthier message dated "Fri, 30 Oct 2020 13:51:49 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <101797.1604081692.1@sss.pgh.pa.us> Date: Fri, 30 Oct 2020 14:14:52 -0400 Message-ID: <101798.1604081692@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Gauthier writes: > Next question, how does one actually replace the thing ? > replace(thestring,0x2026,'...') > ... isn't going to fly. If you don't want to write the actual UTF8 character, maybe the chr() function would suit you better [1]. regards, tom lane [1] https://www.postgresql.org/docs/current/functions-string.html