X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id EA94311F6B70 for ; Fri, 31 Mar 2006 21:36:06 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72628-05 for ; Fri, 31 Mar 2006 21:36:06 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 40A7811F6B77 for ; Fri, 31 Mar 2006 21:36:03 -0400 (AST) Received: (qmail 12837 invoked from network); 1 Apr 2006 10:36:02 +0900 Received: from unknown (HELO ?100.0.32.254?) (100.0.32.254) by sd2.tpf-fw-c.co.jp with SMTP; 1 Apr 2006 10:36:02 +0900 Message-ID: <442DD8E9.2080007@tpf.co.jp> Date: Sat, 01 Apr 2006 10:35:37 +0900 From: Hiroshi Inoue User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Johann Zuschlag CC: Dave Page , pgsql-odbc@postgresql.org Subject: Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text References: <442C3452.5020704@online.de> <442C4F10.3090004@tpf.co.jp> <442D5DFB.4080501@online.de> <442D5FD1.4010909@online.de> In-Reply-To: <442D5FD1.4010909@online.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.917 required=5 tests=[AWL=0.106, RCVD_IN_WHOIS_BOGONS=1.811] X-Spam-Score: 1.917 X-Spam-Level: * X-Archive-Number: 200603/241 X-Sequence-Number: 7527 Johann Zuschlag wrote: > Johann Zuschlag schrieb: > >> > No, again wrong. Or is it more like this: > > 1. > a) locale = ISO8859-1 > backend-1 = LATIN1 > > b) locale = UTF-8 > backend-2 = Unicode What do you mean by the Unicode and are you really setting b) as above ? First note that in PostgreSQL the encoding has nothing to do with the locale setting. Though PostgreSQL manages the encoding settings by itself, as for the locale setting it completely relies on the OS environment. There exists an essential flaw from the first. Anyway you can change the encoding as you like per database at createdb time but the locale setting LC_COLLATE and LC_CTYPE are fixed at initdb time. regards, Hiroshi Inoue