Re: v8.3 + UTF8 errors when restoring DB - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: v8.3 + UTF8 errors when restoring DB
Date
Msg-id 20080309102617.GA17440@svana.org
Whole thread Raw
In response to Re: v8.3 + UTF8 errors when restoring DB  ("Mitchell D. Russell" <mitchell.russell@gmail.com>)
List pgsql-general
On Sun, Mar 09, 2008 at 06:12:14AM -0400, Mitchell D. Russell wrote:
> Just as an update to this matter, I created another new database with
> SQL_ASCII encoding and imported the data, and it worked fine, however, I
> don't think that's the best solution because SQL_ASCII's not a good way to
> have the database encoding set, right?

SQL_ASCII means "no encoding". Everything becomes a bunch of bytes and
there's no checking whatsoever.

> I did a PG_dump of the database tonight, and went to restore it to my newly
> created database (WIN2152 encoding), which worked fine, but when I go to
> retrieve the data via my code (.NET c#), I get errors like :

Any particular reason you're using that encoding? Why not just use UTF-8?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Attachment

pgsql-general by date:

Previous
From: "Mitchell D. Russell"
Date:
Subject: Re: v8.3 + UTF8 errors when restoring DB
Next
From: "Dean Gibson (DB Administrator)"
Date:
Subject: Re: v8.3 + UTF8 errors when restoring DB