Re: [HACKERS] UTF-8 safe ascii() function

From: Patrice Hédé <phede-ml(at)islande(dot)org>
To: jm(dot)poure(at)freesurf(dot)fr
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [HACKERS] UTF-8 safe ascii() function
Date: 2002-05-19 19:14:42
Message-ID: 20020519211442.4d19606e.phede-ml@islande.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-hackers pgsql-interfaces pgsql-odbc

Jean-Michel POURE <jm(dot)poure(at)freesurf(dot)fr> a écrit :

> I tried a Japanese character :
> SELECT utf8toucs2 ('æ_¯'::text) which returns -1
>
> Do you know why it does not return the UCS-2 value?

Oops, my mistake. I forgot to update a test after a copy-paste. Here is
a new version which should be correct this time ! :)

Patrice

--
Patrice Hédé
email: patrice hede à islande org
www : http://www.islande.org/

Attachment Content-Type Size
utf8toucs2.c text/x-csrc 3.2 KB

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jameson C. Burt 2002-05-20 04:52:01 Access by 1000 users to view postgres tables without recreating accounts?
Previous Message Jean-Michel POURE 2002-05-19 18:08:18 Re: [HACKERS] UTF-8 safe ascii() function

Browse pgsql-general by date

  From Date Subject
Next Message david.butcher 2002-05-19 19:44:07 inheritance and primary key contraint
Previous Message Jean-Michel POURE 2002-05-19 18:08:18 Re: [HACKERS] UTF-8 safe ascii() function

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2002-05-19 20:00:53 pgsql/src/interfaces/ecpg ChangeLog preproc/ec ...
Previous Message Tom Lane 2002-05-19 18:53:27 ScanCommandId should become part of snapshot

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jean-Michel POURE 2002-05-20 07:31:31 Re: [HACKERS] UTF-8 safe ascii() function
Previous Message Jean-Michel POURE 2002-05-19 18:08:18 Re: [HACKERS] UTF-8 safe ascii() function

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Inoue 2002-05-20 06:48:05 Re: int8 defined as text in MS Access?
Previous Message Jean-Michel POURE 2002-05-19 18:08:18 Re: [HACKERS] UTF-8 safe ascii() function