Re: [GENERAL] ascii() for utf8

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, "Decibel!" <decibel(at)decibel(dot)org>, Stuart <smcg2297(at)frii(dot)com>, PostgreSQL-development list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [GENERAL] ascii() for utf8
Date: 2007-09-14 13:22:58
Message-ID: 200709141322.l8EDMww21227@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Andrew Dunstan wrote:
>
> Actually, I am working on this as part of the fixes for invalid encoding
> stuff, as recently discussed.

OK, I have moved the item into the 8.3 queue.

---------------------------------------------------------------------------

>
> cheers
>
> andrew
>
> Bruce Momjian wrote:
> > This has been saved for the 8.4 release:
> >
> > http://momjian.postgresql.org/cgi-bin/pgpatches_hold
> >
> > ---------------------------------------------------------------------------
> >
> > Alvaro Herrera wrote:
> >
> >> Decibel! wrote:
> >>
> >>> Moving to -hackers.
> >>>
> >>> On Jul 27, 2007, at 1:22 PM, Stuart wrote:
> >>>
> >>>> Does Postgresql have a function like ascii() that will
> >>>> return the unicode codepoint value for a utf8 character?
> >>>> (And symmetrically same for question chr() of course).
> >>>>
> >>> I suspect that this is just a matter of no one scratching the itch. I
> >>> suspect a patch would be accepted, or you could possibly put something on
> >>> pgFoundry.
> >>>
> >> Nay; there were some discussions about this not long ago, and I think
> >> one conclusion you could draw from them is that many people want these
> >> functions in the backend.
> >>
> >>
> >>> I'd set it up so that ascii() and chr() act according to the
> >>> appropriate locale setting (I'm not sure which one would be appropriate).
> >>>
> >> I don't see why any of them would react to the locale, but they surely
> >> must honor client encoding.
> >>
> >> --
> >> Alvaro Herrera http://www.PlanetPostgreSQL.org/
> >> "I dream about dreams about dreams", sang the nightingale
> >> under the pale moon (Sandman)
> >>
> >> ---------------------------(end of broadcast)---------------------------
> >> TIP 1: if posting/reading through Usenet, please send an appropriate
> >> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> >> message can get through to the mailing list cleanly
> >>
> >
> >

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2007-09-14 13:32:11 Re: Issue with uninstalling postgres 8.1.9
Previous Message SHARMILA JOTHIRAJAH 2007-09-14 12:51:28 Re: oracle rank() over partition by queries

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-09-14 13:36:58 Re: autovacuum launcher eating too much CPU
Previous Message Bruce Momjian 2007-09-14 13:22:13 Re: tsearch2 documentation done