Re: Sqlite to postgres database conversion.swedish chararacter issue - Mailing list pgsql-sql

From Viktor Bojović
Subject Re: Sqlite to postgres database conversion.swedish chararacter issue
Date
Msg-id BANLkTi=7UGP3xMBqOG_tT=H=LUHOhKULuQ@mail.gmail.com
Whole thread Raw
In response to Sqlite to postgres database conversion.swedish chararacter issue  (sara vanan <saravananlatitude@gmail.com>)
List pgsql-sql
i have never used ogr2ogr or done such thing but you migh try to export from sqlite by dumping or selecting data to CSV format (.separator command) and then  make conversions using tr command ih shell for conversion of unwanted characters, or to use iconv for conversion to another encoding.
after convert is done you can insert it.

On Tue, Jun 14, 2011 at 7:37 PM, sara vanan <saravananlatitude@gmail.com> wrote:
Hi,
I am new to postgre sql.I need to convert sqlite datbase to postgres database.i have nearly 15 table in my sqlite database in which 3 table has swedish characters.

I have used ogr2ogr to convert sqlite database to postgres.I was able to convert all the tables except the table which had the swedish character.I have used utf-8 encoding.

I am searching for a sql insert which i can use to convert the table which has swedish character.

any help regarding this would be appriciated.

Thanks,
Sara





--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

pgsql-sql by date:

Previous
From: sara vanan
Date:
Subject: Sqlite to postgres database conversion.swedish chararacter issue
Next
From: Clem Dickey
Date:
Subject: Re: " ::= " grammar rule not accepted by Postgres