Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 211832E305A for ; Mon, 14 Jan 2008 19:41:02 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 13003-02 for ; Mon, 14 Jan 2008 19:40:58 -0400 (AST) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by postgresql.org (Postfix) with ESMTP id 28D682E0100 for ; Mon, 14 Jan 2008 19:40:54 -0400 (AST) Received: from [192.168.2.5] ([71.180.222.218]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JUN00DHVR6MXGT4@vms040.mailsrvcs.net> for pgsql-sql@postgresql.org; Mon, 14 Jan 2008 17:42:26 -0600 (CST) Date: Mon, 14 Jan 2008 18:40:45 -0500 From: Joe Subject: Re: UTF8 encoding and non-text data types In-reply-to: <8278.1200353073@sss.pgh.pa.us> To: Tom Lane Cc: Medi Montaseri , Steve Midgley , pgsql-sql@postgresql.org Message-id: <478BF2FD.60002@freedomcircle.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <20080113222706.73BE416DA2AB@mx1.hub.org> <478aea79.03098c0a.5f32.ffffa6e4SMTPIN_ADDED@mx.google.com> <8078a1730801141101j4bc0dc4chdffee5eaebdb99da@mail.gmail.com> <20080114201831.B34BA2E2CC4@postgresql.org> <8078a1730801141243o63676d02mdb1e3a539679f79f@mail.gmail.com> <7578.1200350483@sss.pgh.pa.us> <478BEA35.1010405@freedomcircle.net> <8278.1200353073@sss.pgh.pa.us> User-Agent: Thunderbird 2.0.0.9 (X11/20071216) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/123 X-Sequence-Number: 29976 Tom Lane wrote: > Oh? Interesting. But even if we wanted to teach Postgres about that, > wouldn't there be a pretty strong risk of getting confused by Arabic's > right-to-left writing direction? Wouldn't be real helpful if the entry > came out as 4321 when the user wanted 1234. Definitely seems like > something that had better be left to the application side, where there's > more context about what the string means. > The Arabic language is written right-to-left, except ... when it comes to numbers. http://www2.ignatius.edu/faculty/turner/arabic/anumbers.htm I agree that it's application specific. The HTML/Perl script ought to convert to Western numerals. Joe