Re: [GENERAL] Move data between two databases SQL-ASCII to UTF8

2007-02-08 Thread Michael Fuhr
On Thu, Feb 08, 2007 at 08:22:40PM -0500, Chad Wagner wrote: > On 2/8/07, Clodoaldo <[EMAIL PROTECTED]> wrote: > >Use pg_dump to dump the db and use iconv on the generated file: > > > >iconv -f ASCII -t UTF-8 mydb.dump -o mydb_utf8.dump Converting the data from ASCII to UTF-8 doesn't make much sen

Re: [GENERAL] Move data between two databases SQL-ASCII to UTF8

2007-02-08 Thread Chad Wagner
On 2/8/07, Clodoaldo <[EMAIL PROTECTED]> wrote: Use pg_dump to dump the db and use iconv on the generated file: iconv -f ASCII -t UTF-8 mydb.dump -o mydb_utf8.dump Wouldn't it be adequate to set the client encoding to SQL_ASCII in the dump file (if that was infact the encoding on the origina

Re: [GENERAL] Move data between two databases SQL-ASCII to UTF8

2007-02-08 Thread Clodoaldo
2007/2/8, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: I need to convert my database to UTF8. Is there a way to do a SELECT ... INSERT from the old database table to the new one? Would the INSERT correct data errors between the two data types? I only have 10 tables and the biggest has < 8000 rows. U

[GENERAL] Move data between two databases SQL-ASCII to UTF8

2007-02-08 Thread MargaretGillon
I need to convert my database to UTF8. Is there a way to do a SELECT ... INSERT from the old database table to the new one? Would the INSERT correct data errors between the two data types? I only have 10 tables and the biggest has < 8000 rows. Running Version 8.1.4 on Redhat 9 *** *** *** ***