Re: [HACKERS] UTF-8 safe ascii() function - Mailing list pgsql-general

From Jean-Michel POURE
Subject Re: [HACKERS] UTF-8 safe ascii() function
Date
Msg-id 200205192008.18893.jm.poure@freesurf.fr
Whole thread Raw
In response to Re: [HACKERS] UTF-8 safe ascii() function  (Patrice Hédé <phede-ml@islande.org>)
Responses Re: [HACKERS] UTF-8 safe ascii() function
List pgsql-general
Le Dimanche 19 Mai 2002 11:44, Patrice Hédé a écrit :
> The function is taking the first character of a TEXT element, and
> returns its UCS2 value. I just did some basic test (i.e. I have not
> tried with 3 or 4 bytes UTF-8 chars). The function is following the
> Unicode 3.2 spec.

Hi Patrice,

I tried a Japanese character :
SELECT utf8toucs2 ('支'::text) which returns -1

Do you know why it does not return the UCS-2 value?

Cheers,
Jean-Michel POURE

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Walking a view to find all source tables
Next
From: Patrice Hédé
Date:
Subject: Re: [HACKERS] UTF-8 safe ascii() function