[mapserver-users] mapserver, qgis, legend and encoding
Leehan
mathias.cunault at inrap.fr
Mon Aug 1 02:55:24 PDT 2016
Hello,
I have created a wms to use it in qgis 2.14. In the legend, some layers have
accents and other don't : you see a small square for example instead of 'ô'.
<http://osgeo-org.1560.x6.nabble.com/file/n5278901/Capture1.png>
The difference in the mapfile is that some letters have been replaced...but
I didn't do that or i don't remember how !
mapfile :
CLASS
NAME "fossé"
EXPRESSION ("[interpret]" in "fossé,fossé ?")
STYLE
OUTLINECOLOR "#FF8C00"
WIDTH 0.5
END #end Style
END # fin class fossé
it gives 'fossé' in the legend (qgis). fine !
but
CLASS
NAME "Côte d'Or"
EXPRESSION '21'
STYLE
COLOR 200 60 70
OUTLINECOLOR 0 0 0
WIDTH 0.5
END #end Style
LABEL
FONT "dejavu"
COLOR 125 125 125
OUTLINECOLOR 255 255 255
OUTLINEWIDTH 1
POSITION cc
SIZE 5
TYPE TRUETYPE
END #ENd
END #end class 21 comm
..gives C*square*e d'Or' : 2 letters missing. You see that in capture above.
In the mapfile, encoded in UTF-8, I just added at the top :
LEGEND
LABEL
FONT "Arial"
TYPE TRUETYPE
SIZE 8
ENCODING "UTF-8"
END # fin label
END #fin legend
The question is : how to fix accents in class name in the legend ?
Thanks
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapserver-qgis-legend-and-encoding-tp5278901.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list