UTF-8 safe ascii() function - Mailing list pgsql-odbc

From Jean-Michel POURE
Subject UTF-8 safe ascii() function
Date
Msg-id 200205181853.19420.jm.poure@freesurf.fr
Whole thread Raw
List pgsql-odbc
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

pgsql-odbc by date:

Previous
From: "Francisco Jr."
Date:
Subject: [ANN] Npgsql version 0.1 Released!
Next
From: Hiroshi Inoue
Date:
Subject: Re: int8 defined as text in MS Access?