After editing dbf file in hex editor and set value at byte 29 to 00h shapefile opens in ArcGIS without<br>encoding troubles (get codepage value from *.cpg file).<br><br><div class="gmail_quote">On Tue, Oct 26, 2010 at 12:30 AM, Paul Ramsey <span dir="ltr"><<a href="mailto:pramsey@opengeo.org">pramsey@opengeo.org</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;">Can you hexedit it and see if it works better?<br>
<div><div></div><div class="h5"><br>
On Mon, Oct 25, 2010 at 10:25 AM, Denis Rykov <<a href="mailto:rykovd@gmail.com">rykovd@gmail.com</a>> wrote:<br>
> Will it make sense to set 0 as a default? In the current case some software<br>
> (ArcGIS) does not override correct CPG setting with obviously incorrect 1252<br>
> from the header.<br>
><br>
> On Tue, Oct 26, 2010 at 12:03 AM, Paul Ramsey <<a href="mailto:pramsey@opengeo.org">pramsey@opengeo.org</a>> wrote:<br>
>><br>
>> And that DBF field dates from the Time Before UTF-8, so there won't be<br>
>> a "UTF8" number to put in it, in any event.  DBF files with UTF in<br>
>> them (OSM!) are scary scary scary (for example, should your code for<br>
>> reading a CHAR(8) field in DBF expect 8 bytes, or 8 characters? yay!)<br>
>> It would be nice to support transcoding down to the code pages that<br>
>> *are* supported in that field, I suppose. I wonder how much software<br>
>> actually supports it.<br>
>><br>
>> P.<br>
>><br>
>> On Mon, Oct 25, 2010 at 9:57 AM, Mark Cave-Ayland<br>
>> <<a href="mailto:mark.cave-ayland@siriusit.co.uk">mark.cave-ayland@siriusit.co.uk</a>> wrote:<br>
>> > Denis Rykov wrote:<br>
>> ><br>
>> >> I don't quite understand why pgsql2shp is writing this encoding to our<br>
>> >> shapes, our database is in UTF-8 and we never use win1252<br>
>> ><br>
>> > Well pgsql2shp has never contained any code to set the encoding field<br>
>> > (mainly because until recently the version of shapelib included with<br>
>> > PostGIS<br>
>> > didn't support the encoding field), so I guess WIN1252 must be the<br>
>> > shapelib<br>
>> > default.<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>
>> _______________________________________________<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>
><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>
><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>