[gdal-dev] ogr2ogr encoding [RESOLVED]

Alexandre Dube adube at mapgears.com
Thu May 28 08:48:18 EDT 2009


Hi Frank,

Alexandre Dube wrote:
>
> I tried to set PGCLIENTENCODING to LATIN1 but I got the same error.  
> My terminal is also set to latin1 and when I get the error I can see 
> the character correctly.  Changing it to utf8, I see a <?> character 
> instead, so I assume the dbf is in latin1.
>
> Is there a way I could be sure of the dbf encoding ?  It's a file from 
> the tiger data set, maybe someone already know that ?  I checked in 
> the tiger doc but didn't find anything.
>
> Thanks,
>

My bad !  I thought that :

PGCLIENTENCODING=LATIN1;

was enough since using echo $PGCLIENTENCODING returned my value, but it 
was not actually set.  Doing this worked :

export PGCLIENTENCODING=LATIN1;

(still learning a lot in linux...)

Many thanks,

-- 
Alexandre Dubé
Mapgears
www.mapgears.com



More information about the gdal-dev mailing list