Re: Character encoding conversion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Character encoding conversion
Дата
Msg-id 25696.1202580875@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Character encoding conversion  (Mike Blackwell <maiku41@sbcglobal.net>)
Список pgsql-admin
Mike Blackwell <maiku41@sbcglobal.net> writes:
> I have a database which was originally created with LATIN1 encoding.
> I'd like to move it to UTF8.  The data will load ok (COPY)  but I am
> getting 'invalid byte sequence for encoding..." messages when accessing
> the data.

How exactly did you move the data?  And what PG version are we talking
about?

> Is there a way to automatically convert the offending characters, or to
> easily locate them in a pg_dump file so they can be converted by hand?

If you've got client_encoding and server_encoding set up correctly,
it should happen automatically during the COPY.  I think you messed
that up somehow, but it's not clear just how.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Postgres Backup and Restore
Следующее
От: "Dean Gibson (DB Administrator)"
Дата:
Сообщение: When to ANALYZE w/ auto-vacuum