Re: UTF8 with BOM support in psql

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: UTF8 with BOM support in psql
Дата
Msg-id 4B02E9E0.1010906@dunslane.net
обсуждение исходный текст
Ответ на Re: UTF8 with BOM support in psql  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: UTF8 with BOM support in psql
Список pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>   
>> Peter Eisentraut wrote:
>>     
>>> Well, someone could implement UTF-16 or UTF-whatever as client encoding.
>>> But I have not heard of any concrete proposals about that.
>>>       
>
>   
>> Doesn't the nul byte problem make that seriously hard?
>>     
>
> Just about impossible.  It would require a protocol bump, and removal of
> C-style string usage *everywhere* on the client side.
>
> Again, this is something that might be more feasible with encoding
> conversion inside psql --- translating UTF16 to UTF8 immediately upon
> reading it from any external file would confine the problem to possibly
> manageable bounds.
>
>         
>   

Well, it might be a good idea to provide at least some support in libpq. 
Making each client do it from scratch seems a bit inefficient.

cheers

andrew


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: UTF8 with BOM support in psql
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: actualised funcs typmod patch