Re: encoding problem when creating a database

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: encoding problem when creating a database
Date: 2008-07-02 14:01:18
Message-ID: 20080702140118.GB20209@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

am Wed, dem 02.07.2008, um 15:52:23 +0200 mailte A B folgendes:
> I get this message when it fails to create a new database
>
> encoding UTF8 does not match server's locale sv_SE.iso88591
>
> when trying to create a database with the createdb command and the parameter
> " -E UTF8"

You have created the db-cluster with sv_SE.iso88591. Because of this,
you can't now create a db with an incompatible locale.

>
> I'm not sure what to change here.
> Any good ideas?

Make a full database dump, drop the db-cluster, recreate it with locale
UTF8 and restore your dump.

Regards, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message A B 2008-07-02 14:11:35 Re: encoding problem when creating a database
Previous Message A B 2008-07-02 13:52:23 encoding problem when creating a database