I don't think it's currently set to anything, so I guess this would be
the default? Perhaps we should provide a mapping from PostgreSQL
database encoding names to shapefile encoding values in a table somewhere?
Anyone know which encoding 0x57h represents?
ATB,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
_______________________________________________
postgis-users mailing list
postgi...@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
Cheers,
Francis Markham
On 25 October 2010 20:05, Mark Cave-Ayland
> I don't quite understand why pgsql2shp is writing this encoding to our
> shapes, our database is in UTF-8 and we never use win1252
Well pgsql2shp has never contained any code to set the encoding field
(mainly because until recently the version of shapelib included with
PostGIS didn't support the encoding field), so I guess WIN1252 must be
the shapelib default.
P.
> After editing dbf file in hex editor and set value at byte 29 to 00h
> shapefile opens in ArcGIS without
> encoding troubles (get codepage value from *.cpg file).
That's strange. Does anyone know what the behaviour of the
psDBF->iLanguageDriver field should be in terms of how it reacts with a
.cpg file? Frank?