dbTalk Databases Forums  

converting database to unicode

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss converting database to unicode in the comp.databases.postgresql.general forum.



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

Default converting database to unicode - 10-13-2004 , 10:00 AM






I have a database in sql_ascii that I need to convert to Unicode. I tried using
pg_dump -Fc .. but it fails on certain characters. like this one "è"
How can I get the data transferred?


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
  #2  
Old   
Jason Tesser
 
Posts: n/a

Default Re: converting database to unicode - 10-15-2004 , 07:59 AM






Some help please?? :-) Anyone?


-----Original Message-----
From: pgsql-general-owner (AT) postgresql (DOT) org on behalf of Jason Tesser
Sent: Wed 10/13/2004 10:00 AM
To: pgsql-general (AT) postgresql (DOT) org
Cc:
Subject: [GENERAL] converting database to unicode
I have a database in sql_ascii that I need to convert to Unicode. I tried using
pg_dump -Fc .. but it fails on certain characters. like this one "è"
How can I get the data transferred?


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend





---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #3  
Old   
Alvaro Herrera
 
Posts: n/a

Default Re: converting database to unicode - 10-15-2004 , 08:25 AM



On Fri, Oct 15, 2004 at 07:59:19AM -0500, Jason Tesser wrote:
Quote:
Some help please?? :-) Anyone?
Did you try recoding the plain-text dump using recode or iconv?


Quote:
-----Original Message-----
From: pgsql-general-owner (AT) postgresql (DOT) org on behalf of Jason Tesser
Sent: Wed 10/13/2004 10:00 AM
To: pgsql-general (AT) postgresql (DOT) org
Cc:
Subject: [GENERAL] converting database to unicode
I have a database in sql_ascii that I need to convert to Unicode. I tried using
pg_dump -Fc .. but it fails on certain characters. like this one "è"
How can I get the data transferred?
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"No es bueno caminar con un hombre muerto"


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



Reply With Quote
  #4  
Old   
Alvaro Herrera
 
Posts: n/a

Default Re: converting database to unicode - 10-15-2004 , 09:48 AM



On Fri, Oct 15, 2004 at 09:36:42AM -0500, Jason Tesser wrote:
Quote:
Uhh no. Could you help me understand how to do that. I am currently using the following to dump and restore
pg_dump -Fc --username=xxx --dbanme=xxx filename
pg_restore -Fc --username=xxx --dbname filename
Something like

pg_dump --username=xxx --dbname=yyy filename
recode latin1..utf8 filename
createdb -E utf8 database
psql < filename

(assuming the database is Latin1, a.k.a. iso-8859-1. Update accordingly.)

I don't think you can do it with a -Fc or -Ft format. In fact, if you
do that, the dump will be corrupted.


Huh, now I know why your name was so familiar to me (see sig)

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Jason Tesser: You might not have understood me or I am not understanding you.
Paul Thomas: It feels like we're 2 people divided by a common language...


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html



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.