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<br><br><div class="gmail_quote">On Mon, Oct 25, 2010 at 5:42 PM, Francis Markham <span dir="ltr"><<a href="mailto:fmarkham@gmail.com">fmarkham@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">0x57h is the dreaded Windows-1252 codepage. I believe new versions of<br>
shapelib allow this to be set when the shapefile is created.<br>
<br>
Cheers,<br>
<br>
Francis Markham<br>
<br>
<br>
On 25 October 2010 20:05, Mark Cave-Ayland<br>
<div><div></div><div class="h5"><<a href="mailto:mark.cave-ayland@siriusit.co.uk">mark.cave-ayland@siriusit.co.uk</a>> wrote:<br>
><br>
> Denis Rykov wrote:<br>
><br>
>> Try to export postgis data to shapefiles with pgsql2shp (pgsql2shp-core.h 5870 2010-08-28 09:16:32Z mcayland)<br>
>> If open *.dbf file I see the value in my dbf files at byte 29 is 0x57h. Is the 0x57h value is default? Why not 0x00h?<br>
>> With 0x57h encoding my shapefiles looks not correct in any GIS software.<br>
><br>
> 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?<br>
><br>
> Anyone know which encoding 0x57h represents?<br>
><br>
><br>
> ATB,<br>
><br>
> Mark.<br>
><br>
> --<br>
> Mark Cave-Ayland - Senior Technical Architect<br>
> PostgreSQL - PostGIS<br>
> Sirius Corporation plc - control through freedom<br>
> <a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
> t: +44 870 608 0063<br>
><br>
> Sirius Labs: <a href="http://www.siriusit.co.uk/labs" target="_blank">http://www.siriusit.co.uk/labs</a><br>
> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br>