Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 541E0634036 for ; Tue, 3 Nov 2009 23:54:47 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 78406-09 for ; Wed, 4 Nov 2009 03:54:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outA.internet-mail-service.net (outa.internet-mail-service.net [216.240.47.224]) by mail.postgresql.org (Postfix) with ESMTP id B4363633DD5 for ; Tue, 3 Nov 2009 23:54:39 -0400 (AST) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id DCE5FDC167; Tue, 3 Nov 2009 19:54:36 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from [192.168.2.105] (adsl-71-135-168-64.dsl.pltn13.pacbell.net [71.135.168.64]) by idiom.com (Postfix) with ESMTP id 767A22D601C; Tue, 3 Nov 2009 19:54:36 -0800 (PST) Message-ID: <4AF0FAF9.8080306@obviously.com> Date: Tue, 03 Nov 2009 19:54:33 -0800 From: Bryce Nesbitt User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: pgsql-sql@postgresql.org CC: Craig Ringer Subject: Re: Why don't I get a LATIN1 encoding here with SET ENCODING? References: <4AF0D531.5080309@obviously.com> <4AF0E70F.1030201@postnewspapers.com.au> <4AF0F6A7.7070505@obviously.com> <4AF0F949.3060807@postnewspapers.com.au> In-Reply-To: <4AF0F949.3060807@postnewspapers.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/8 X-Sequence-Number: 33359 Craig Ringer wrote: > Yes - but you are *not* presenting a Latin-1 character. You're > presenting four Latin-1 characters: > > '\', '3', '7', '5' Well, then I have a different question. If I can view a bytea column as so: > select object from context_objects where context_key=100041; object ----------------------------- \005\007\021\007Article\003 (1 row) How can I modify the data and put it back into the column? I'm trying to track down while a ten year old system no longer works after a Perl DBI upgrade. Something is munging high LATIN1. The DB itself is UTF-8, client_encoding is set to LATIN1. We expect LATIN1 in, same stuff out. But right now that is what I'm debugging.