Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 15214475DA0; Sat, 18 May 2002 12:54:02 -0400 (EDT) Received: from www1.translationforge.com (unknown [212.11.36.58]) by postgresql.org (Postfix) with ESMTP id D5BA0475AFB; Sat, 18 May 2002 12:53:16 -0400 (EDT) Received: from linus.translationforge.com ([192.168.1.102]) by www1.translationforge.com (8.12.1/8.12.1) with ESMTP id g4IGrRst007636; Sat, 18 May 2002 18:53:28 +0200 Content-Type: text/plain; charset="iso-8859-1" From: Jean-Michel POURE Reply-To: jm.poure@freesurf.fr To: , pgsql-general , pgsql-odbc Subject: UTF-8 safe ascii() function Date: Sat, 18 May 2002 18:53:19 +0200 X-Mailer: KMail [version 1.4] Cc: pgsql-hackers@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200205181853.19420.jm.poure@freesurf.fr> X-Archive-Number: 200205/149 X-Sequence-Number: 4324 Dear all, I would like to transform UTF-8 strings into Java-Unicode. Example : - Latin1 : '=E9' - UTF-8 : '=C3=A9'=20 - Java Unicode =3D '\u00233' Basically, a Unicode compatible ascii() function would be fine. ascii('=C3=A9') should return 233. 1) Has anyone written an ascii UTF-8 safe wrapper to ascii() function? If y= es,=20 would you be so kind to publish this function on the list. 2) Are there plans to add an ascii() UTF-8 safe function to PostrgeSQL? Best regards, Jean-Michel POURE