X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (unknown [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A05619FB2F0 for ; Wed, 30 Aug 2006 10:55:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 30842-05-2 for ; Wed, 30 Aug 2006 10:55:23 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web53009.mail.yahoo.com (web53009.mail.yahoo.com [206.190.49.39]) by postgresql.org (Postfix) with SMTP id 7ED1A9FA61D for ; Wed, 30 Aug 2006 10:52:30 -0300 (ADT) Received: (qmail 16498 invoked by uid 60001); 30 Aug 2006 13:52:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OUWEWxI1ILVPgoJg0c5ox+mwOcDRHLOM7lp/bmP7vvEgMme8QrFi0qtMXp4J3qwhA9Gj2iMrEtxZ+2Yp7YTcxnfj3tXroonCu0X670JRaPDYfYy5stXkdPrShYmef2jZxvwjjmxDR36CzQRuiJKwkp6CWiC8kkO1Ug/DsL3CgS8= ; Message-ID: <20060830135228.16496.qmail@web53009.mail.yahoo.com> Received: from [200.112.11.211] by web53009.mail.yahoo.com via HTTP; Wed, 30 Aug 2006 06:52:28 PDT Date: Wed, 30 Aug 2006 06:52:28 -0700 (PDT) From: "Marcelo ." Subject: Re: UTF8 Vs Latin9 and valid encoding. To: pgsql-sql@postgresql.org In-Reply-To: <44F54B9C.4040200@logix-tt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.889 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/240 X-Sequence-Number: 26198 Hello, Thanks for your reply. When I execute show client_encoding; I get UNICODE. However, up to know I was using pgAdmin III Query and EMS... you gave me the idea to use psql, where I noticed something interesting: \encoding UTF8 show client_encoding; UTF8 So this seems to be OK.. However when I type áéíóúñ on screen I see ߨ«·± Why would this be? Thanks again --- Markus Schaber wrote: > Hi, Marcelo, > > Marcelo . wrote: > > > I receive the error msg: > > ERROR: invalid UTF-8 byte sequence detected near > byte > > 0xf1 > > > > Isn't UTF-8 the same as UNICODE where it > encapsulates > > all other coding schemes including latin9? > > Yes, it is. > > But it seems that your client and the server > disagree on the encoding > they use. > > I think the problem is that your client (psql, I > presume) uses latin9 to > communicate with the server, but the server assumes > the client uses utf8. > > in psql, you can use \encoding to show the encoding > psql uses, and "show > client_encoding;" to show the encoding the server > thinks the client uses. > > Try one of: > > SET client_encoding TO LATIN9; -- Tell server: > client uses latin9 > > \encoding LATIN9; -- Set clients encoding > > You can also set UTF-8 here, the server will convert > between the client > and database encoding (but it needs to know). > > HTH, > Markus > > > > -- > Markus Schaber | Logical Tracking&Tracing > International AG > Dipl. Inf. | Software Development GIS > > Fight against software patents in EU! www.ffii.org > www.nosoftwarepatents.org > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please > send an appropriate > subscribe-nomail command to > majordomo@postgresql.org so that your > message can get through to the mailing list > cleanly > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com