Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 2BC632E0040 for ; Tue, 26 Feb 2008 20:11:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 86712-02-3 for ; Tue, 26 Feb 2008 20:11:16 -0400 (AST) X-Greylist: delayed 00:17:56.063169 by SQLgrey-1.7.5 Received: from mail13.bluewin.ch (mail13.bluewin.ch [195.186.18.62]) by postgresql.org (Postfix) with ESMTP id B214E2E0045 for ; Tue, 26 Feb 2008 20:11:22 -0400 (AST) Received: from [192.168.1.74] (83.79.107.239) by mail13.bluewin.ch (Bluewin 7.3.121) id 476BDEE50102A26A for pgsql-admin@postgresql.org; Tue, 26 Feb 2008 23:53:24 +0000 From: Ivo Rossacher To: pgsql-admin@postgresql.org Subject: Re: encoding??? Date: Wed, 27 Feb 2008 00:53:24 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <5AE10E7F-7AAD-4717-83E8-CD49BAE49F6F@indiana.edu> In-Reply-To: <5AE10E7F-7AAD-4717-83E8-CD49BAE49F6F@indiana.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802270053.24669.rossacher@bluewin.ch> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/350 X-Sequence-Number: 28424 SQL_ASCII is not really an encoding, it is more the lack of any encoding support from the server. With this setting the encoding is fully the responsibility of the client application. This is very comfortable for special cases but for most regular cases it is only asking for troubles. Therfore for most cases UTF8 should be the prefered encoding on the server side. The client encoding only tells the server how to convert the data from and to the client. How to set this depends on the capabilities of the client. In the manual in chapter 22.2 Character Set Support you can get more details and all from the server supported conversions. Best regards Ivo Am Dienstag, 26. Februar 2008 20.41:45 schrieb Carol Walter: > Greetings... > > I'm really confused about something. I hope you'll help. I have a > client who wants to use Asian Character data. The database he wants > to use is set to SQL_ASCII, the default. I thought there might be an > ALTER DATABASE command that would change this, but I've been through > the documentation and it says that encoding is done at the client > level and is changed with a set statement. I assumed that would be > like setting the search path so I tried it and I was able to set the > encoding for my session to UTF8. I guess my question is how does > this work, where the database is set to use one encoding sequence and > it is set for the client session to something else. > > Carol Walter > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster