pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Michel POURE <jm.poure@freesurf.fr>
To: Patrice Hédé <phede-ml@islande.org>
To: pgsql-general@postgresql.org
Subject: Re: [HACKERS] UTF-8 safe ascii() function
Date: Sun, 19 May 2002 20:08:18 +0200
Message-ID: <200205192008.18893.jm.poure@freesurf.fr> (raw)
In-Reply-To: <20020519114413.2265b70e.phede-ml@islande.org>
References: <200205181853.19420.jm.poure@freesurf.fr>
	<20020519114413.2265b70e.phede-ml@islande.org>

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



view thread (6+ messages)  latest in thread

Message-ID: <200205192008.18893.jm.poure@freesurf.fr>
Permalink:  ../200205192008.18893.jm.poure@freesurf.fr/
Also on:    postgresql.org/message-id/200205192008.18893.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, phede-ml@islande.org, pgsql-general@postgresql.org
  Subject: Re: [HACKERS] UTF-8 safe ascii() function
  In-Reply-To: <200205192008.18893.jm.poure@freesurf.fr>
  References: <200205181853.19420.jm.poure@freesurf.fr> <20020519114413.2265b70e.phede-ml@islande.org> <200205192008.18893.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