Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CA4651337BE6 for ; Tue, 25 Jan 2011 08:22:18 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 97037-03-2 for ; Tue, 25 Jan 2011 12:22:12 +0000 (UTC) X-Greylist: delayed 00:28:36.676529 by SQLgrey-1.7.6 Received: from hermes.ort.edu.uy (hermes.ort.edu.uy [164.73.96.24]) by mail.postgresql.org (Postfix) with ESMTP id 09DD51337BC9 for ; Tue, 25 Jan 2011 08:22:04 -0400 (AST) Received: from hermes.ort.edu.uy (localhost [127.0.0.1]) by localhost.ort.edu.uy (Postfix) with ESMTP id DBED51359AE for ; Tue, 25 Jan 2011 09:53:24 -0200 (UYST) Received: from archie.ort.edu.uy (archie.ort.edu.uy [192.168.20.22]) by hermes.ort.edu.uy (Postfix) with ESMTP id D02DD1359AD for ; Tue, 25 Jan 2011 09:53:24 -0200 (UYST) Received: from [172.30.10.6] (unknown [172.30.10.6]) by archie.ort.edu.uy (Postfix) with ESMTP id 949BE1FB55 for ; Tue, 25 Jan 2011 09:53:30 -0200 (UYST) Message-ID: <4D3EB8FA.70101@ort.edu.uy> Date: Tue, 25 Jan 2011 09:50:18 -0200 From: Rodriguez Fernando User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #5847: pg_restore: [archiver (db)] COPY failed: ERROR: invalid byte sequence for encoding "UTF8": 0x96 References: <201101250418.p0P4IOvv067349@wwwmaster.postgresql.org> In-Reply-To: <201101250418.p0P4IOvv067349@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-Product-Ver: IMSS-7.0.0.3346-6.5.0.1024-17914.007 X-TM-AS-User-Approved-Sender: Yes;Yes X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/185 X-Sequence-Number: 29207 El 25/01/2011 2:18, Vijayakumar escribió: > The following bug has been logged online: > > Bug reference: 5847 > Logged by: Vijayakumar > Email address: mails4vijayakumar@gmail.com > PostgreSQL version: 8.2 > Operating system: windows > Description: pg_restore: [archiver (db)] COPY failed: ERROR: invalid > byte sequence for encoding "UTF8": 0x96 > Details: > > while restoring my database i am getting the error as > > > > D:\EnterpriseDB\Postgres\8.2\bin\pg_restore.exe -i -h localhost -p 5432 -U > postgres -d asasas -v "E:\backupcsv\erode.backup" > pg_restore: connecting to database for restore > pg_restore: creating TABLE generalledgermaster_erode > pg_restore: restoring data for table "generalledgermaster_erode" > pg_restore: [archiver (db)] Error while PROCESSING TOC: > pg_restore: [archiver (db)] Error from TOC entry 1624; 0 121663 TABLE DATA > generalledgermaster_erode postgres > pg_restore: [archiver (db)] COPY failed: ERROR: invalid byte sequence for > encoding "UTF8": 0x96 > HINT: This error can also happen if the byte sequence does not match the > encoding expected by the server, which is controlled by "client_encoding". > CONTEXT: COPY generalledgermaster_erode, line 374 > pg_restore: creating CONSTRAINT generalledgermaster_erode_pkey > pg_restore: setting owner and privileges for TABLE > generalledgermaster_erode > pg_restore: setting owner and privileges for CONSTRAINT > generalledgermaster_erode_pkey > WARNING: errors ignored on restore: 1 > > Process returned exit code 1. > Hola a todos, la base de donde la respaldastes la tenias en utf-8, win1252, sql_ascii o latin1? Si aun tenes la base original proba pg_dump -Ft -EUTF8 saludos Fernando