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
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
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,
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
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,