Re: Why don't I get a LATIN1 encoding here with SET ENCODING?

From: Bryce Nesbitt <bryce2(at)obviously(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Cc: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
Subject: Re: Why don't I get a LATIN1 encoding here with SET ENCODING?
Date: 2009-11-04 03:36:07
Message-ID: 4AF0F6A7.7070505@obviously.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Craig Ringer wrote:
> In truth, that's how I'd expect it to happen. If I ask for the byte 0xfd
> in a string, I don't want the server to decide that I must've meant
> something else because I have a different client encoding. If I wanted
> encoding conversion, I wouldn't have written it in an escape form, I'd
> have written 'ý' not '\375'.
I've got a client encoding of LATIN1... so I'd expect to be able to
present any valid LATIN1 character, not care how the backend stored it,
then get the same character back from the database.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Craig Ringer 2009-11-04 03:47:21 Re: Why don't I get a LATIN1 encoding here with SET ENCODING?
Previous Message Craig Ringer 2009-11-04 02:29:35 Re: Why don't I get a LATIN1 encoding here with SET ENCODING?