[mapserver-users] WMS => GetLegendGraphic : encoding problem

Sylvain Perrinel sylvain.perrinel at agriculture.gouv.fr
Wed Mar 19 07:55:31 EDT 2008


@Yves : My mapfile is already in utf_8

@thomas : I add ENCODING UTF8 to the LABEL block in the LEGEND object 
and it does nothing. But I have found that I use the default 
configuration in BITMAP for the LEGEND. If I use instead a TRUETYPE font 
with characters with accents like "Arial", it works.

So thank you for your help.


Jacolin Yves a écrit :
> Le Wednesday 19 March 2008 11:13:07 Sylvain Perrinel, vous avez écrit :
>> Hello
>> I have some problems of encoding with a WMS server on Mapserver and the
>> request "GetLegendGraphic". I have set all my environnement in UTF-8
>> (WMS-Server, WMS-Client, php and html scripts) and my mapfile have the
>> tag "wms_encoding" "utf-8" but if classes have some characters with
>> accents, the encoding is false.
>>
>> I use this url :
>> http://url/mapserv?map=n_zone_defavorisee_000_2006.map&SERVICE=WMS&VERSION=
>> 1.1.1&REQUEST=GetLegendGraphic&LAYER=n_zone_defavorisee_000_2006&Format=imag
>> e/png
>>
>> Is there in this url an encoding issue ?
>>
>> You can see an example enclosed in the mail. Thanks
> 
> Hi,
> 
> Did you try to convert you mapfile in UTF8 ?
> Linux:
> iconv -f latin1 -t utf8 -o final.map orginale.map
> windows :
> iconv -f latin1 -t utf8 < orginale.map > final.map 
> 
> Y.

-- 
Sylvain Perrinel
Ministère de l'Agriculture
SG/SM/SDSI/CERIT
Département d'Information Géographique
B.P. 12668 - 31326 Castanet-Tolosan Cedex
Tel : 05 61 28 92 76
Web: http://sigsiti.national.agri
      http://bdnt.national.agri
      http://georepertoire.national.agri
      http://sig.geoweb.auzeville.agri


More information about the mapserver-users mailing list