[mapserver-users] Encoding problem
Stephen Woodbridge
woodbri at swoodbridge.com
Mon Oct 26 11:24:54 PDT 2015
Try dumping the shapefile like:
dbfdump file.dbf > out.txt
file out.txt
The file command might give you some indication of the encoding.
Also note that the ttf file that you are using must have glyphs for the
characters you are trying to display otherwise you will get a black box
or something eles strange.
-Steve W
On 10/26/2015 2:16 PM, Stefanos Anastasiou wrote:
> Hello everybody.
>
> I'm having a small issue with truetype and encoding in greek. Instead of
> normal letters I'm getting weird symbols or even shapes.
>
> iconv -l | grep {GREEK | ISO-8859-7 | WINDOWS-1253} are all
> present in the system.
>
>
> My Mapserver version:
>
> MapServer version 7.0.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ
> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV
> SUPPORTS=XMP SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG
> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
>
> My LABEL object in my code is the following:
>
> LABEL
> TYPE truetype
> FONT arial
> SIZE 6
> PARTIALS TRUE
> ENCODING GREEK
> END
>
> I also tried ENCODING ISO-8859-7 and WINDOWS-1253. But getting symbols
> instead of letters. The closest to human readable is with encoding
> UTF-8... but still.
>
> I'm probably missing something here.What is the problem ?
>
>
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list