Re: Bug in UTF8-Validation Code?

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas ADI SD
Тема Re: Bug in UTF8-Validation Code?
Дата
Msg-id E1539E0ED7043848906A8FF995BDA57901E7B67A@m0143.s-mxs.net
обсуждение исходный текст
Ответ на Re: Bug in UTF8-Validation Code?  ("Albe Laurenz" <all@adv.magwien.gv.at>)
Список pgsql-hackers
> What do others think? Should the argument to CHR() be a
> Unicode code point or the numeric representation of the
> database encoding?

When the database uses a single byte encoding, the chr function takes
the binary byte representation as an integer number between 0 and 255
(e.g. ascii code).
When the database encoding is one of the unicode encodings it takes a
unicode code point.
This is also what Oracle does.

Not sure what to do with other multibyte encodings.
Oracle only states that the numeric argument must resolve to one entire
code point,
whatever that is.

Andreas


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

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Bug in UTF8-Validation Code?
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Bug in UTF8-Validation Code?