Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D6DBE2E033F for ; Fri, 30 Nov 2007 18:05:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 64711-09 for ; Fri, 30 Nov 2007 18:05:43 -0400 (AST) Received: from mail21.bluewin.ch (mail21.bluewin.ch [195.186.18.66]) by postgresql.org (Postfix) with ESMTP id C471A2E016E for ; Fri, 30 Nov 2007 18:05:46 -0400 (AST) Received: from [192.168.1.74] (83.78.80.203) by mail21.bluewin.ch (Bluewin 7.3.121) id 471B45BE00B07957 for pgsql-admin@postgresql.org; Fri, 30 Nov 2007 22:05:45 +0000 From: Ivo Rossacher To: pgsql-admin@postgresql.org Subject: Re: Character Corruption / Encoding Question Date: Fri, 30 Nov 2007 23:05:44 +0100 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <002601c8338c$aa2fb370$b501a8c0@bwlaptop> In-Reply-To: <002601c8338c$aa2fb370$b501a8c0@bwlaptop> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711302305.44972.rossacher@bluewin.ch> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/268 X-Sequence-Number: 27511 Am Freitag, 30. November 2007 21.07:40 schrieb Bill Willits: > We have just upgraded our phppgadmin client from v3.5 to v.4.1.3. Now, > when we view special characters in phppgadmin they are displayed > incorrectly. If we update the character field (to a special character), it > will not store properly. Our database encoding is SQL_ASCII. The same > operations work fine in v.3.5 of phppgadmin and with pgadmin III. SQL_ASCII is not an encoding but more the lack of any encoding support. This is required when you need full control of the encoding stuff. But then all the clients have to agree and take care by them self for the encoding. This can not be expected to be stable over several different applications, installations and releases and is therefore only usefull when really needed for some reason. So phpadmin would need to be configured to use the correct encoding for your setup (I do only have little, aged expirience with phpadmin but I think to remember that the encoding used is defined by the php installation). From my point of view it would make more sense to use UTF8 or any other encoding fullfilling your needs, so the database can convert the encoding from and to the client encoding for you. However depending of the actual status of the data in the database it might be some work to convert the data to the new encoding (it depends on how many different encodings where used to enter data into the database). You can find more details on the matter in the manual in chapter 21. Best regards Ivo Rossacher > > Obviously, this is a phppgadmin issue (and I have posted a question to > them), but I am just curious what could have changed to cause it, and what > if any workaround there would be outside of reverting to old version of > phppgadmin or getting a patch. > > Thanks > Bill Willits