X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9D8F39DCCC6 for ; Thu, 2 Mar 2006 13:27:31 -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 18350-01 for ; Thu, 2 Mar 2006 13:27:29 -0400 (AST) X-Greylist: delayed 00:32:25.122538 by SQLgrey- Received: from p15140235.pureserver.info (sql-info.de [217.160.166.164]) by postgresql.org (Postfix) with ESMTP id F34F09DCBF2 for ; Thu, 2 Mar 2006 13:27:27 -0400 (AST) Received: by p15140235.pureserver.info (Postfix, from userid 639) id 3A7A93AEB; Thu, 2 Mar 2006 17:54:53 +0100 (CET) Received: from iwate.sql-info.de (p54BE6083.dip.t-dialin.net [84.190.96.131]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by p15140235.pureserver.info (Postfix) with ESMTP id 227F03AEA for ; Thu, 2 Mar 2006 17:54:51 +0100 (CET) From: Ian Barwick To: "pgsql-docs@postgresql.org" Subject: Function ascii(text) character -> byte Date: Thu, 2 Mar 2006 17:54:59 +0100 User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603021754.59986.barwick@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200603/2 X-Sequence-Number: 3459 Hi in the docs, the function "ascii(text)" is described as returning "ASCII code of the first character of the argument" (see http://www.postgresql.org/docs/8.1/interactive/functions-string.html, Table 9-6. "Other String Functions"). Presumably this should read "ASCII code of the first byte of the argument", which is what is returned when the argument is a multi-byte character (although then with UTF-8 at least that might not necessarily be an ASCII code). Regards Ian Barwick