pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Michel POURE <jm.poure@freesurf.fr>
To: pgsql-admin@postgresql.org
To: pgsql-general <pgsql-general@postgresql.org>
To: pgsql-odbc <pgsql-odbc@postgresql.org>
Cc: pgsql-hackers@postgresql.org
Subject: UTF-8 safe ascii() function
Date: Sat, 18 May 2002 18:53:19 +0200
Message-ID: <200205181853.19420.jm.poure@freesurf.fr> (raw)

Dear all,

I would like to transform UTF-8 strings into Java-Unicode. Example :
- Latin1 : 'é'
- UTF-8 : 'é' 
- Java Unicode = '\u00233'

Basically, a Unicode compatible ascii() function would be fine.
ascii('é') should return 233.

1) Has anyone written an ascii UTF-8 safe wrapper to ascii() function? If yes, 
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



view thread (6+ messages)  latest in thread

Message-ID: <200205181853.19420.jm.poure@freesurf.fr>
Permalink:  ../200205181853.19420.jm.poure@freesurf.fr/
Also on:    postgresql.org/message-id/200205181853.19420.jm.poure@freesurf.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jm.poure@freesurf.fr, pgsql-general@postgresql.org, pgsql-odbc@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: UTF-8 safe ascii() function
  In-Reply-To: <200205181853.19420.jm.poure@freesurf.fr>
  References: <200205181853.19420.jm.poure@freesurf.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox