convert database to unicode - Mailing list pgsql-general

From David Lutz
Subject convert database to unicode
Date
Msg-id 20030826051413.14268.qmail@web13907.mail.yahoo.com
Whole thread Raw
Responses Re: convert database to unicode  (Gianni Mariani <gianni@mariani.ws>)
List pgsql-general
Hello,  I want to convert an existing database with
SQL_ASCII encoding to UNICODE encoding.

(postgresql ver 7.3.2)

I thought that it might be as easy as:
pg_dump mydatabase > dump.sql
createdb --encoding=unicode newdatabase
psql newdatabase < dump.sql

but it wasn't going to be that easy now was it :-(

I'm getting errors such as:
ERROR:  copy: line 54, Invalid UNICODE character
sequence found (0xe46765)
lost synchronization with server, resetting connection

Can anyone suggest a way I might be able to do it?
Thanks,   David


http://search.yahoo.com.au - Yahoo! Search
- Looking for more? Try the new Yahoo! Search

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: move to usenet?
Next
From: Bruce Momjian
Date:
Subject: Re: Buglist