Re: [ADMIN] Going from a DB using SQL_ASCII to UNICODE

2004-04-21 Thread Peter Eisentraut
Am Dienstag, 20. April 2004 07:05 schrieb Frank Finner: > I answered to a similiar problem on the [GENERAL] list a few days ago. In > short: You can use "recode" in a pipe between dump and restore like > "pg_dump database|recode ascii..utf8|psql newdatabase" to get rid of > unicode problems while t

Re: [ADMIN] Going from a DB using SQL_ASCII to UNICODE

2004-04-20 Thread CoL
hi, Dion Almaer wrote, On 4/19/2004 21:44: - ERROR: missing data for column "noiselevel" - CONTEXT: COPY messages, line 1: "4393 -1 144114147 0 2000-10-12 18:30:58-05 EJB Design Questions\N Hi," for this one: better to dump with: -d C. ---(end of b

Re: [ADMIN] Going from a DB using SQL_ASCII to UNICODE

2004-04-20 Thread CoL
hi, Dion Almaer wrote, On 4/19/2004 21:44: - ERROR: invalid byte sequence for encoding "UNICODE": 0xe9616c and for this: convert your dump with iconv to unicode, then load it. C. ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, p

Re: [ADMIN] Going from a DB using SQL_ASCII to UNICODE

2004-04-19 Thread Frank Finner
Hi, I answered to a similiar problem on the [GENERAL] list a few days ago. In short: You can use "recode" in a pipe between dump and restore like "pg_dump database|recode ascii..utf8|psql newdatabase" to get rid of unicode problems while transferring from a different encoding. Please look at my st

Re: [ADMIN] Going from a DB using SQL_ASCII to UNICODE

2004-04-19 Thread Dion Almaer
Eric Preston > Subject: Re: [ADMIN] Going from a DB using SQL_ASCII to UNICODE > > "Dion Almaer" <[EMAIL PROTECTED]> writes: > > When we try to import the data from a SQL_ASCII dumped db, into the > > new UNICODE db, everything freaks out. > > I&#x

Re: [ADMIN] Going from a DB using SQL_ASCII to UNICODE

2004-04-19 Thread Tom Lane
"Dion Almaer" <[EMAIL PROTECTED]> writes: > When we try to import the data from a SQL_ASCII dumped db, into the new > UNICODE db, everything freaks out. I'm no expert on this stuff, but I think what you need to do is add set client_encoding = sql_ascii; to the top of the dump file. (As