ascii() for utf8

Поиск
Список
Период
Сортировка
От Stuart
Тема ascii() for utf8
Дата
Msg-id f8dd4d$246$1@sea.gmane.org
обсуждение исходный текст
Ответы Re: ascii() for utf8  (Decibel! <decibel@decibel.org>)
Список pgsql-general
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 didn't find anything in the docs so I think the answer
is no which leads me to ask...  Why not?  (Hard to believe
lack of need without concluding that either ascii() is
not needed, of utf8 text is little used.)

Are there technical problems in implementing such a
function?  Has anyone else already done this (ie, is
there somewhere I could get it from?)

Is there some other non-obvious way to get the cp value
for the utf8 character?

I think I could use plperl or plpython for this but
this seems like an awful lot of overhead for such a
basic task.


В списке pgsql-general по дате отправления:

Предыдущее
От: "Paolo Victor"
Дата:
Сообщение: Re: How do I create a database if I can't connect to it?
Следующее
От: Lincoln Yeoh
Дата:
Сообщение: How best to represent relationships in a database generically?