Re: [rfc] unicode escapes for extended strings

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [rfc] unicode escapes for extended strings
Дата
Msg-id 49E8D87A.6080607@dunslane.net
обсуждение исходный текст
Ответ на Re: [rfc] unicode escapes for extended strings  (Marko Kreen <markokr@gmail.com>)
Ответы Re: [rfc] unicode escapes for extended strings  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers

Marko Kreen wrote:
> +    if (c > 0x7F)
> +    {
> +        if (GetDatabaseEncoding() != PG_UTF8)
> +            yyerror("Unicode escape values cannot be used for code point values above 007F when the server encoding
isnot UTF8");
 
> +        saw_high_bit = true;
> +    }
>   

Is that really what we want to do? ISTM that one of the uses of this is 
to say "store the character that corresponds to this Unicode code point 
in whatever the database encoding is", so that \u00a9 would become an 
encoding independent way of designating the copyright symbol, for instance.

cheers

andrew




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Replacing plpgsql's lexer
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [rfc] unicode escapes for extended strings