Re: \COPY to accept non UTF-8 chars in CHAR columns

Поиск
Список
Период
Сортировка
От Rory Campbell-Lange
Тема Re: \COPY to accept non UTF-8 chars in CHAR columns
Дата
Msg-id 20200327224732.GA28471@campbell-lange.net
обсуждение исходный текст
Ответ на Re: \COPY to accept non UTF-8 chars in CHAR columns  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-general
On 27/03/20, Andrew Gierth (andrew@tao11.riddles.org.uk) wrote:
> >>>>> "Rory" == Rory Campbell-Lange <rory@campbell-lange.net> writes:
> 
>  Rory> Or:
> 
>  Rory>     iconv -f WINDOWS-1252 -t UTF-8 -c < tempfile2 > tempfile3
> 
> No. That's just a conversion of win1252 to utf8 without regard for any
> UTF8 that might already be present in the input. Any such input will end
> up double-encoded, requiring further work to fix.

My apologies. I missed the subtlety of the substitution in your perl code.



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

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: \COPY to accept non UTF-8 chars in CHAR columns
Следующее
От: Jerry Sievers
Дата:
Сообщение: Re: Promoting Hot standby after running select pg_xlog_replay_pause();