change database encoding without corrupting data (latin9 to utf8) - Mailing list pgsql-general

From filippo
Subject change database encoding without corrupting data (latin9 to utf8)
Date
Msg-id 1179481586.333004.274420@w5g2000hsg.googlegroups.com
Whole thread Raw
Responses Re: change database encoding without corrupting data (latin9 to utf8)
List pgsql-general
I have a problem to entry data to postgres database (latin9) from my
perl/tk application running on windows (utf8). Whenever I try to entry
letter with accents, these looks corrupted once stored into database.

A workaround is to set client encoding to UTF8 after creating the
database connection:

$dbh->do(qq/SET client_encoding to 'UTF8'/);

To avoid such kind of workaround I'd like to convert the whole
database from LATIN9 to UTF8, how can I do it without corrupting the
data?

Thanks,
Filippo


pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: FULL JOIN is only supported with merge-joinable join conditions
Next
From: Raymond O'Donnell
Date:
Subject: Re: Are foreign key's automatically set as indicies?