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 B99CA11F6ABD for ; Fri, 31 Mar 2006 14:43:48 -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 90813-02 for ; Fri, 31 Mar 2006 14:43:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 78C3A11F690A for ; Fri, 31 Mar 2006 14:43:46 -0400 (AST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FPOaw-00086c-4y for pgsql-odbc@postgresql.org; Fri, 31 Mar 2006 20:43:38 +0200 Received: from 83.145.96.118 ([83.145.96.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Mar 2006 20:43:38 +0200 Received: from Marc.Herbert by 83.145.96.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Mar 2006 20:43:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: Marc Herbert Subject: Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text Date: Fri, 31 Mar 2006 20:47:05 +0200 Lines: 20 Message-ID: References: <442C3452.5020704@online.de> <442C4F10.3090004@tpf.co.jp> <442D5DFB.4080501@online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.118 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:qcGcgft6B+OVKeCUs+q7w5HpLOE= X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.353 required=5 tests=[AWL=0.100, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.353 X-Spam-Level: * X-Archive-Number: 200603/237 X-Sequence-Number: 7523 Johann Zuschlag writes: > 'A' = U+0041 (does windows use big-endian?) Argh, please do not make it even more complex than it needs to be! Endianness is by chance an _independent_ issue. You just care about it at the low-low level when dealing with files or network sockets, but then it's over and you never want to hear about it anymore at a higher level. So U+0041 is an integer whose value is: zero thousand zero hundred forty one and this is always true, whatever is the byte ordering used by the processor. You don't need to know more than this, even when converting to UTF-8 or anything else.