pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Gauthier <davegauthierpg@gmail.com>
Cc: Tim Clarke <tim.clarke@minerva.info>
Cc: pgsql-general@lists.postgresql.org <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 ?
Date: Fri, 30 Oct 2020 14:14:52 -0400
Message-ID: <101798.1604081692@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMBRECBcEka59GMLAY6LmOuuEgYHNRyd2Pkr4gQwVA0Ww8-MAw@mail.gmail.com>
References: <CAMBRECDY5gHrdrr+xvG5aAdsi1LTH1RZCbj3fzEWmOEcTv8FSQ@mail.gmail.com>
	<9a237283-d0d6-08ac-ae6b-f224c71c19ef@minerva.info>
	<CAMBRECBcEka59GMLAY6LmOuuEgYHNRyd2Pkr4gQwVA0Ww8-MAw@mail.gmail.com>

David Gauthier <davegauthierpg@gmail.com> 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





view thread (6+ messages)

Message-ID: <101798.1604081692@sss.pgh.pa.us>
Permalink:  ../101798.1604081692@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/101798.1604081692@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, davegauthierpg@gmail.com, tim.clarke@minerva.info
  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: <101798.1604081692@sss.pgh.pa.us>
  References: <CAMBRECDY5gHrdrr+xvG5aAdsi1LTH1RZCbj3fzEWmOEcTv8FSQ@mail.gmail.com> <9a237283-d0d6-08ac-ae6b-f224c71c19ef@minerva.info> <CAMBRECBcEka59GMLAY6LmOuuEgYHNRyd2Pkr4gQwVA0Ww8-MAw@mail.gmail.com> <101798.1604081692@sss.pgh.pa.us>

* 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