Re: Character encoding in database dumps - Mailing list pgsql-novice

From Markus Bertheau
Subject Re: Character encoding in database dumps
Date
Msg-id 1086889881.2758.1.camel@teetnang
Whole thread Raw
In response to Character encoding in database dumps  (Lynna Landstreet <lynna@gallery44.org>)
List pgsql-novice
В Срд, 09.06.2004, в 20:11, Lynna Landstreet пишет:
> Hi there,
>
> My database was created with Unicode encoding, as a fair number of the
> artists and exhibitions have French names, and thus include accented
> characters. I thought I'd solved all the various problems this generates,
> but have just discovered one new one.
>
> When I do a dump of the database to back it up (because I'm paranoid and
> don't want my web host to be my only source of security on this matter), the
> accented characters don't come through correctly. They all display correctly
> in phpPgAdmin, and in the PHP pages I've made to search and display the data
> - it's just in dumps that they're garbled. I presume this means the Unicode
> encoding is somehow being lost and the data read as standard ASCII.
>
> I'm currently using phpPgAdmin to export the data, and it gives me a choice
> of downloading it as a .sql file or displaying it in the browser window, but
> either way, the special characters are toasted. Does anyone have any idea
> how I can do a database dump that keeps the character encoding intact?

How do you determine that the character encoding is wrong? Maybe
whatever it is you use to look at the dump just doesn't interpret the
data as UTF-8.

--
Markus Bertheau <twanger@bluetwanger.de>


pgsql-novice by date:

Previous
From: Eduardo V. Rodríguez
Date:
Subject: Re: Help with JSP connection with postgreSQL
Next
From: Eduardo V. Rodríguez
Date:
Subject: Size of a table