[mapserver-users] mapserver 6.4.1 - special characters in legend

thomas bonfort thomas.bonfort at gmail.com
Wed Apr 15 07:05:29 PDT 2015


Do yourself a favour and save your mapfile in UTF-8. This will be a
requirement anyways starting from version 7.0.

You need to set label->type=truetype and label->size=9 (i.e. in
pixels, not "large") for it to work.

--
thomas

On 15 April 2015 at 15:13, Carmen Delia Hernández Pérez
<cdhernandez at tenerife.es> wrote:
>
> Thanks but this solution does not work me.
>
> My enconding is "ISO-8859-1" that i think is the default encoding of Mapserver.
>
> My mapfile is saved with that encoding and although I put ENCODING tag in LABEL section of LEGEND this remains same.
>
> Do you know of what library depends legend generation? I think as I compile mapserver the problem can be in some library. Or can be related with some configuration of Centos7. I don´t know where to look more. I have used more "microsoft windows" enviromment.
>
>
> Thanks in advance.
> Carmen.
> -----Mensaje original-----
> De: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] En nombre de Jörg Thomsen
> Enviado el: miércoles, 15 de abril de 2015 13:18
> Para: mapserver-users at lists.osgeo.org
> Asunto: Re: [mapserver-users] mapserver 6.4.1 - special characters in legend
>
> see below inline
>
> Am 15.04.2015 um 14:10 schrieb Carmen Delia Hernández Pérez:
>> Thanks but I have tried that option and it does not work.
>> I have for example in my mapfile
>>
>> FONTSET "DEPORTES_FUTBOL/fonts/fontset.txt"
>>
>>           LEGEND
>>                      KEYSIZE 30 12
>>                      LABEL
>>                         FONT Arial
>>                         SIZE LARGE
>>                         COLOR 0 255 0
>
> ENCODING "UTF-8"  # or whatever your mapfile is encoded in
>
>
>>
>>                      END
>>           END
>
> Jörg
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> _______________________________________________
> 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