Re: [GENERAL] How to change the file encoding of a 3gb file?

2010-07-18 Thread Sergey Konoplev
Hi, I'm just guessing. If you have a database in UTF8 and your SQL-file in some encoding so what about doing this: 1. Connect to your database using psql $ psql -p ... -h ... -U ... your_database 2. Set client encoding to the encoding of your SQL-file yourdb=# \encoding your_sql_encoding 3. Lo

Re: [GENERAL] How to change the file encoding of a 3gb file?

2010-07-18 Thread manitou-sig
Andre Lopes wrote: > I'am trying to import an SQL file with 3gb of INSERTS. I must to change the > encode of the file to UTF8, how can I change the encode of the file without > open it? This 3gb file crashes every program... > > Give me a clue. I'd use recode: http://recode.progiciels-b

Re: [GENERAL] How to change the file encoding of a 3gb file?

2010-07-18 Thread zhong ming wu
Will running the following on your file useful http://www.gnu.org/software/recode/ It helped me with a pg_dump file in the past On Sun, Jul 18, 2010 at 5:51 PM, Andre Lopes wrote: > Hi, > > I'am trying to import an SQL file with 3gb of INSERTS. I must to change the > encode of the file to UTF8,

Re: [GENERAL] How to change the file encoding of a 3gb file?

2010-07-18 Thread Scott Marlowe
On Sun, Jul 18, 2010 at 3:51 PM, Andre Lopes wrote: > Hi, > > I'am trying to import an SQL file with 3gb of INSERTS. I must to change the > encode of the file to UTF8, how can I change the encode of the file without > open it? This 3gb file crashes every program... Has iconv been any help? -- S

[GENERAL] How to change the file encoding of a 3gb file?

2010-07-18 Thread Andre Lopes
Hi, I'am trying to import an SQL file with 3gb of INSERTS. I must to change the encode of the file to UTF8, how can I change the encode of the file without open it? This 3gb file crashes every program... Give me a clue. Best Regards,