Re: [gdal-dev] MapInfo TAB with WindowsLatin1 into Spatialite

2012-01-21 Thread Even Rouault
Le jeudi 19 janvier 2012 10:48:51, Jukka Rahkonen a écrit : > Hi, > > My MapInfo TAB files have attributes with WindowsLatin1 encoding. Direct > conversion with ogr2ogr from Mapinfo formta into Spatialite seems to give > wrong encoding in the Spatialite database. I have not discoverd any direct >

Re: [gdal-dev] MapInfo TAB with WindowsLatin1 into Spatialite

2012-01-19 Thread Dan Putler
Hi Jukka, I think you need to get it to a text form, which GML does. However, rather than hand edit the file, I would run it through recode to convert the character encoding. It would be faster, and not be as error prone as doing by hand. The link to the recode product is: http://recode.progi

Re: [gdal-dev] MapInfo TAB with WindowsLatin1 into Spatialite

2012-01-19 Thread Luca Sigfrido Percich
Hi Jukka, for handling similar cases with MapInfo to PostGIS, there is an environment variable suitable for setting the client character encoding: export PGCLIENTENCODING=LATIN1 So maybe there is something similar for SQLite? I don't know. Otherwise try the following workaround, which does not

[gdal-dev] MapInfo TAB with WindowsLatin1 into Spatialite

2012-01-19 Thread Jukka Rahkonen
Hi, My MapInfo TAB files have attributes with WindowsLatin1 encoding. Direct conversion with ogr2ogr from Mapinfo formta into Spatialite seems to give wrong encoding in the Spatialite database. I have not discoverd any direct way for changing the encoding into utf-8 with GDAL yet. However, I feel