[mapserver-users] Σχετ: Encoding problem
Stefanos Anastasiou
emperor_stef at yahoo.gr
Mon Oct 26 11:56:57 PDT 2015
Thanks for the reply.
Stephen: (it turned out I didn't have the shapelib installed. Do I have to recompile MapServer from scratch now?)
dbfdump gives me this: out.txt: ISO-8859 text
The glyph indeed exists. It's there
Thomas: Thanks for the clarification. I wasn't aware of that. This encoding that dbfdump says I'm having is ISO-8859.. just that and of course iconv complains it's not supported. RFC suggests all characters should iconv'd to UTF-8. Am I right?
-Stefanos
Στις 8:25 μ.μ. Δευτέρα, 26 Οκτωβρίου 2015, ο/η thomas bonfort <thomas.bonfort at gmail.com> έγραψε:
Stefanos,
First off, you *need* to know the encoding that's actually used by
each datasource, there's no way of guessing that reliably
programmatically. And since MapServer 7, the ENCODING keyword has been
moved to the LAYER level:
http://mapserver.org/development/rfc/ms-rfc-103.html
If you have the possibility, and/or in the future, always use UTF8
inside your datasources.
regards,
thomas
On 26 October 2015 at 19:16, Stefanos Anastasiou <emperor_stef at yahoo.gr> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20151026/d7d3845b/attachment.htm>
More information about the MapServer-users
mailing list