Re: converting curly apostrophes to standard apostrophes

From: CSN <cool_screen_name90001(at)yahoo(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: converting curly apostrophes to standard apostrophes
Date: 2005-08-15 20:48:00
Message-ID: 20050815204800.2905.qmail@web52909.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- Michael Fuhr <mike(at)fuhr(dot)org> wrote:

> On Mon, Aug 15, 2005 at 12:14:16PM -0700, CSN wrote:
> > Is there a way to replace all curly apostrophes
> with
> > standard apostrophes (presumably with
> replace(x,y,z))?
> > My database is SQL_ASCII and I can't find a
> character
> > code for curly apostrophes in ASCII here:
> > http://www.lookuptables.com, but nevertheless
> there
> > appear to be curly apostrophes in the database.
>
> The "Extended ASCII Codes" section of that page
> might not match
> what your system uses (it doesn't match mine). Have
> you tried using
> the ascii() function on the offending data?

I logged back in after changing putty's charset to
UTF-8 and am now able to paste an ’ (curly apostrophe)
into psql, however that character still appears as a
grey box in psql's select output. I've tried various
queries to find which rows and fields contain it,
without success (I know it's in some of them):

db=>select ascii('’');
ascii
-------
226

db=>select id from news where body ilike '%’%';
(0 rows)

db=>select id from news where body ilike '%' ||
chr(226) || '%';
db'>
db'>^C
db=>

CSN

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2005-08-15 20:58:50 Re: createlang
Previous Message eoghan 2005-08-15 20:45:36 createlang