After changing some code we can see signs like: ≤ in Geoserver.
···
Thanks Stefano and Rob for helping me to solve our problem.
Best regards, Annelies Brouwer
SHAPE_ENCODING usually works fine – where/how are you viewing the resulting shapefiles and determining they’re “wrong”?
If using GeoServer, are you setting the “charset” property to UTF-8/whatever when you create your datastore?
Rob 
–
Koordinates
PO Box 1604, Shortland St, Auckland 1140, New Zealand
Phone +64-9-966 0433 koordinates.com
Van: Anneliese Brouwer | Crotec B.V.
Verzonden: woensdag 13 mei 2015 19:29
Aan: ‘Stefano Costa’; Rahkonen Jukka (MML)
CC: geoserver-users@lists.sourceforge.net
Onderwerp: RE: [Geoserver-users] Signs like ‘b≤3.2’ from json/dbf not showed in Geoserver
Stefano,
I am going to do two tests. Publishing without the GeoserverRest and via the GeoserverRest.
I’ll let you know.
Best regards
Anneliese Brouwer
Van: Stefano Costa [mailto:stefano.costa@…1107…]
Verzonden: woensdag 13 mei 2015 19:24
Aan: Rahkonen Jukka (MML)
CC: Anneliese Brouwer | Crotec B.V.; geoserver-users@lists.sourceforge.net
Onderwerp: Re: [Geoserver-users] Signs like ‘b≤3.2’ from json/dbf not showed in Geoserver
I finally managed to run GeoServer 1.6.2 on a VM, I published your shape file and I can see all the characters correctly:
![]()
So… not sure why it doesn’t work for you… or it doesn’t work only when you publish the layer via the rest interface?
Regards,
–S
Il giorno mer, 13/05/2015 alle 17.17 +0000, Rahkonen Jukka (MML) ha scritto:
Hi,
Perhaps off-topic, but I would like to see stronger proof about ISO8859-1 being mandated in DBF or shapefiles.
From the dBase history [http://www.eweek.com/database/30-years-ago-the-rise-fall-and-survival-of-ashton-tates-dbase-2.html](http://www.eweek.com/database/30-years-ago-the-rise-fall-and-survival-of-ashton-tates-dbase-2.html) it appears that dBase II came in 1981, dBase III in 1984, and dBase IV 1988. On the other hand, in article [http://en.wikipedia.org/wiki/ISO/IEC_8859-1](http://en.wikipedia.org/wiki/ISO/IEC_8859-1) we are told that the standard is three years younger than dBase III:
"ISO/IEC 8859-1:1998, Information technology — 8-bit single-byte coded graphic character sets — Part 1: Latin alphabet No. 1, is part of the ISO/IEC 8859 series of ASCII-based standard character encodings, first edition published in 1987."
The shapefile specification [http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf](http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf) does not speak anything about codepages and very little about dbf, not even which dbf version should be used. In all shapefiles I have had a closer look the dbf part is marked to be version III in the headers.
A blog [http://dbaseblogs.com/kkolosky/2012/07/11/code-page-and-dbase-for-dos-system-is-not-configured-for-current-code-page/](http://dbaseblogs.com/kkolosky/2012/07/11/code-page-and-dbase-for-dos-system-is-not-configured-for-current-code-page/) shows that dBase IV 2.0 supported DOS codepages 437 and 850, [http://en.wikipedia.org/wiki/Code_page_437](http://en.wikipedia.org/wiki/Code_page_437) and [http://en.wikipedia.org/wiki/Code_page_850](http://en.wikipedia.org/wiki/Code_page_850). So no support for ISO8859-1 at all in a native dBase product.
Well, I think I could have used my time better by trying to find something helpful for Anneliese instead of correcting an error in the Internet.
-Jukka Rahkonen-
________________________________________
Stefano Costa wrote:
OK, now the picture is clearer.
I can't try the Shapefile you generated with Geoserver 1.6 (as I said,
it stubbornly refuses to start on my machine), but I tested it in GS
2.6.2 and it works fine, so I'm pretty confident your file is correct.
I know that the Shapefile specification mandated ISO8859-1 charset be
used in DBF files (see:
[http://gis.stackexchange.com/questions/3529/which-character-encoding-is-used-by-the-dbf-file-in-shapefiles](http://gis.stackexchange.com/questions/3529/which-character-encoding-is-used-by-the-dbf-file-in-shapefiles)), so probably GS 1.6 followed closely the standard and assumed any DBF file was encoded in ISO8859-1.
I can't know for sure though, it's just a guess.
Please always use the "Reply to all" button or the other people on the
list won't be able to follow along and help you.
Best regards,
Stefano
Il giorno mer, 13/05/2015 alle 15.23 +0000, Anneliese Brouwer|Crotec
B.V. ha scritto:
> Stefano,
>
> We have a web application in which we use Geoserver and OpenLayers.
> The user can select a gml file. In code we upload the file, create json file, with gdal we create the shape files (geometry types can be point, line, region) , and with geoserverrest we create datastore and layers in Geoserver.
>
> Yes, I did try UTF-8. In some messages on the Internet about the issue people mention ISO-8859-1. So I tried that one also.
>
> Thanks for the help.
>
> Best regards
>
> Anneliese Brouwer
> Ontwikkelaar
>
>
>
>
>
>
> -----Oorspronkelijk bericht-----
> Van: Stefano Costa [[mailto:stefano.costa@...1107...](mailto:stefano.costa@...1107...)]
> Verzonden: woensdag 13 mei 2015 16:57
> Aan: Anneliese Brouwer | Crotec B.V.
> Onderwerp: Re: [Geoserver-users] Signs like 'b≤3.2' from json/dbf not showed in Geoserver
>
> Hi Anneliese,
>
> >
> > I did some modifications in my code (C#) but still not seeing the'≤'
> > chars.
> >
> > (Geoserver 1.6.0).
>
> Wow, quite an ancient version of GeoServer you've got there, I wasn't even able to make it start on my machine. :-)
>
> > <entry key=""charset"">ISO-8859-1</entry>
> >
>
>
> Did you try using UTF-8 as charset:
>
> <entry key=""charset"">UTF-8</entry>
>
> Also, I'm wondering why you are using the REST interface to create / configure datastores instead of the web admin interface...
>
> Best,
> Stefano
>
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
[http://ad.doubleclick.net/ddm/clk/290420510;117567292;y](http://ad.doubleclick.net/ddm/clk/290420510;117567292;y)
_______________________________________________
Geoserver-users mailing list
[Geoserver-users@lists.sourceforge.net](mailto:Geoserver-users@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-users](https://lists.sourceforge.net/lists/listinfo/geoserver-users)