RE: [suggestion]support UNICODE host variables in ECPG

Поиск
Список
Период
Сортировка
От Matsumura, Ryo
Тема RE: [suggestion]support UNICODE host variables in ECPG
Дата
Msg-id 03040DFF97E6E54E88D3BFEE5F5480F737A80E2F@G01JPEXMBYT04
обсуждение исходный текст
Ответ на Re: [suggestion]support UNICODE host variables in ECPG  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> * What's the benefit of supporting UTF16 in host variables?

I think that the first benefit of suggestion is providing a way to
treat UTF16 chars for application. Whether or not to support above
U+FFFF (e.g. surrogate pair) may be a next discussion.

For that purpose, implementation for the suggestion may be easier
than for supporting UTF16 at client_encoding. Uvarchar seems to be
a label indicating that stored data is encoded by UTF16. It localizes
the impacts within only labeled host variable.

# At least, ecpglib is not good at treating 0x00 as a part of one character.

Regards
Ryo Matsumura




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

Предыдущее
От: "Iwata, Aya"
Дата:
Сообщение: RE: libpq debug log
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Tab completion for ALTER INDEX|TABLE ALTER COLUMN SET STATISTICS