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

Jacolin Yves yjacolin at free.fr
Wed Mar 19 05:38:48 EDT 2008


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.
-- 
Yves Jacolin
---
http://softlibre.gloobe.org


More information about the mapserver-users mailing list