Re: Sqlite to postgres database conversion.swedish chararacter issue

From: Viktor Bojović <viktor(dot)bojovic(at)gmail(dot)com>
To: sara vanan <saravananlatitude(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Sqlite to postgres database conversion.swedish chararacter issue
Date: 2011-06-16 22:08:56
Message-ID: BANLkTi=7UGP3xMBqOG_tT=H=LUHOhKULuQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message hatem gamal elzanaty 2011-06-17 22:43:44 pagination problem in postgresql need help
Previous Message Clem Dickey 2011-06-16 19:07:56 Re: "<query expression body> ::= <joined table>" grammar rule not accepted by Postgres