Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 0436C9FA0B7 for ; Sun, 24 Dec 2006 13:44:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 40151-06 for ; Sun, 24 Dec 2006 13:44:07 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by postgresql.org (Postfix) with ESMTP id E170D9F939F for ; Sun, 24 Dec 2006 13:44:07 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so4332195nfb for ; Sun, 24 Dec 2006 09:44:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=WaUENmg8yvZmz/KwxmAbnNADaWSvL5+Fqa0E+p519Nwt39b0J10P6ofsfWGMqWd5sGrAkLEMr4onsQWM6qnG0vb5JXzuZZ9DgpmxsKa3DRaAZmfbbtEYKv3htK93j5ma88JzmR/004J0usXHLB90v4SK3l7f66SBS/02HQ/molg= Received: by 10.49.43.2 with SMTP id v2mr12983041nfj.1166982247237; Sun, 24 Dec 2006 09:44:07 -0800 (PST) Received: from ?82.54.155.138? ( [82.54.155.138]) by mx.google.com with ESMTP id l22sm52202428nfc.2006.12.24.09.44.06; Sun, 24 Dec 2006 09:44:07 -0800 (PST) Message-ID: <458EBC64.5040808@computer.org> Date: Sun, 24 Dec 2006 18:44:04 +0100 From: Alexis Paul Bertolini User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: Changing character set when the damage is done References: <458C6650.80105@computer.org> <1166831523.6369.308.camel@localhost.localdomain> <458EA551.3090008@computer.org> <20061224165734.GA43931@winnie.fuhr.org> In-Reply-To: <20061224165734.GA43931@winnie.fuhr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/167 X-Sequence-Number: 27123 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.