pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Davis <noah@acadaca.com>
To: pgsql-admin@postgresql.org
Subject: Bad character data
Date: Mon, 3 May 2004 15:23:40 -0400
Message-ID: <200405031524353.SM01356@Pedro> (raw)

I posted this to the pgsql general list, but alas, I did not get any
responses. Perhaps someone here could be of assistance?

I have a database with some bad characters in it -- some users had entered
MS Word smart quotes, em dashes, foreign characters, and they look like
gibberish coming out of the database. Most important are the smart quotes I
guess.

What's the best way to replace these characters? I thought I might be able
to run a simple SQL UPDATE command, but some of the gibberish for different
characters looks the same (at least from my client it does), and it would
clobber them all.

I have a feeling there's some sort of ASCII code or unicode solution to this
problem, but I could use am little push in the right direction.

Thanks.

Noah.




view thread (6+ messages)  latest in thread

Message-ID: <200405031524353.SM01356@Pedro>
Permalink:  ../200405031524353.SM01356@Pedro/
Also on:    postgresql.org/message-id/200405031524353.SM01356@Pedro

 · 

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-admin@postgresql.org
  Cc: noah@acadaca.com
  Subject: Re: Bad character data
  In-Reply-To: <200405031524353.SM01356@Pedro>
  References: <200405031524353.SM01356@Pedro>

* 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