Re: Migration

Поиск
Список
Период
Сортировка
От Devrim GUNDUZ
Тема Re: Migration
Дата
Msg-id 1139561095.16736.18.camel@evim.gunduz.org
обсуждение исходный текст
Ответ на Migration  ("James Dey" <james@mygus.com>)
Ответы Re: Migration  ("James Dey" <james@mygus.com>)
Список pgsql-admin
Hi,

On Fri, 2006-02-10 at 10:38 +0200, James Dey wrote:

> I have installed PostgreSQL 8.1 onto a new box, and when trying to
> create a new database, even when specifiying –encoding=UNICODE I
> cannot create UNICODE dbs, it makes them all UTF-8.
>
>
> Then when I try and restore a DB dump, but keep on getting invalid
> “UTF-8 byte sequence detected near byte xxx” and although the restore
> continues, a lot of data is missing.

http://developer.postgresql.org/docs/postgres/release-8-1.html

"Some users are having problems loading UTF-8 data into 8.1.X. This is
because previous versions allowed invalid UTF-8 byte sequences to be
entered into the database, and this release properly accepts only valid
UTF-8 sequences. One way to correct a dumpfile is to run the command
iconv -c -f UTF-8 -t UTF-8 -o cleanfile.sql dumpfile.sql. The -c option
removes invalid character sequences. A diff of the two files will show
the sequences that are invalid. iconv reads the entire input file into
memory so it might be necessary to use split to break up the dump into
multiple smaller files for processing."

Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: PL/php, plPerlNG - http://www.commandprompt.com/


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

Предыдущее
От: "James Dey"
Дата:
Сообщение: Migration
Следующее
От: "James Dey"
Дата:
Сообщение: Re: Migration