dbTalk Databases Forums  

pg_dumpall and convert from LATIN1 to UTF-8?

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss pg_dumpall and convert from LATIN1 to UTF-8? in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joseph
 
Posts: n/a

Default pg_dumpall and convert from LATIN1 to UTF-8? - 02-25-2004 , 08:29 AM






Hi Everyone,

I have used pg_dumpall on a database that was created with LATIN1
encoding and has a whole bunch of messy latin1 data in it.

I want to restore this data to a new db with UTF-8 encoding, with the
data converted so the 8859-1 characters display properly.

How should I go about doing this?

Thanks,

Joseph

Reply With Quote
  #2  
Old   
CoL
 
Posts: n/a

Default Re: pg_dumpall and convert from LATIN1 to UTF-8? - 02-27-2004 , 04:39 AM






hi,

Joseph wrote:

Quote:
Hi Everyone,

I have used pg_dumpall on a database that was created with LATIN1
encoding and has a whole bunch of messy latin1 data in it.

I want to restore this data to a new db with UTF-8 encoding, with the
data converted so the 8859-1 characters display properly.

How should I go about doing this?
try function convert (and check CREATE CONVERSION)

c.


Reply With Quote
  #3  
Old   
Markus Bertheau
 
Posts: n/a

Default Re: pg_dumpall and convert from LATIN1 to UTF-8? - 02-29-2004 , 03:50 AM



On Срд, 2004-02-25 at 06:29 -0800, Joseph wrote:
Quote:
Hi Everyone,

I have used pg_dumpall on a database that was created with LATIN1
encoding and has a whole bunch of messy latin1 data in it.

I want to restore this data to a new db with UTF-8 encoding, with the
data converted so the 8859-1 characters display properly.

How should I go about doing this?
Pipe the dump through iconv.

--
Markus Bertheau <twanger (AT) bluetwanger (DOT) de>


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.