X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id BEE2A9FB2B1 for ; Wed, 30 Aug 2006 01:48:58 -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 78837-02 for ; Wed, 30 Aug 2006 01:48:55 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web53007.mail.yahoo.com (web53007.mail.yahoo.com [206.190.49.37]) by postgresql.org (Postfix) with SMTP id 578B29FB298 for ; Wed, 30 Aug 2006 01:48:54 -0300 (ADT) Received: (qmail 15730 invoked by uid 60001); 30 Aug 2006 04:48:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=h5ARSCgaFXc97iPWL/dGsbDy7tSGdNcXyYDjKTp8EiegoBlbXpNrY8PBwhmBS6lTGtbl6P/DGyH1lSXCEaK26b0cISWkzKhz7G5/mmpsmHUI0SePhdqudZlmUgQmw5CVFzB6knbP0Ga7l88F26y3v4Oqk+DRwFfXf5o3auUzpO4= ; Message-ID: <20060830044853.15728.qmail@web53007.mail.yahoo.com> Received: from [200.112.11.211] by web53007.mail.yahoo.com via HTTP; Tue, 29 Aug 2006 21:48:53 PDT Date: Tue, 29 Aug 2006 21:48:53 -0700 (PDT) From: "Marcelo ." Subject: UTF8 Vs Latin9 and valid encoding. To: pgsql-sql@postgresql.org 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=3.355 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: *** X-Archive-Number: 200608/234 X-Sequence-Number: 26192 Hello, I am using postgres 8.1 for windows and have the following dilema. I have 2 databases, one encoded in UTF-8 and one in Latin9. In both DBs I can create the following test table: CREATE TABLE "holaniño" ( nombre varchar(5), "titúlo" varchar(10) ) WITHOUT OIDS; Then in both DBs I can execute the following SQL: select * from holaniño where titúlo = 'compania' HOWEVER, when I change the SQL to: select * from holaniño where titúlo = "compañia" (changed the N to a Ñ in the filter) I receive the error msg: ERROR: invalid UTF-8 byte sequence detected near byte 0xf1 Where in the LATIN9 db, there is no problem. Isn't UTF-8 the same as UNICODE where it encapsulates all other coding schemes including latin9? Any insight would be greatly apreciated. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com