Re: Changing character set when the damage is done

From: Alexis Paul Bertolini <bertolini(at)computer(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Changing character set when the damage is done
Date: 2006-12-24 17:44:04
Message-ID: 458EBC64.5040808@computer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Michael Fuhr wrote:
> Are you sure that's not a tilde (a wavy line above the A) instead
> of a cedilla (a hook below the A)? The UTF-8 encoding for lowercase e
> with grave is 0xc3 0xa8, which in ISO-8859-1 (LATIN1) or Windows-1252
> is uppercase A with tilde followed by a diaeresis (an umlaut on its
> own). Does the data appear correctly if you do either of the following?
>
> SELECT convert(colname, 'utf8', 'latin1') FROM tablename;
>
Yep, I meant the A with the tilde (the word cedilla sounded Spanish...
lol). Thanks, the "convert" function does the trick for me.

Using win1252 I get a "invalid destination encoding" error, but no
problem since I know for sure there aren't any euro signs.

Thanks!!

Alex.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2006-12-24 19:12:51 Re: Changing character set when the damage is done
Previous Message Michael Fuhr 2006-12-24 16:57:34 Re: Changing character set when the damage is done