[mapserver-users] French characters in a map file

Daniel Morissette morissette at dmsolutions.ca
Tue Nov 26 13:03:41 EST 2002


That's because GD's default fonts encoding is not ISOLatin1... i.e. it
doesn't match the character set used by default on Windows.

You have a few options:

1- Recompile GD with new ISO-8859-1 encoded bitmap fonts... I did that a
while ago for another application.  I could provide you with the
modified GD source for that if you want to compile it yourself.

2- Use a TTF font in your GIF legend.

3- Use the HTML legend, then the French characters will be rendered in
HTML.

Daniel



Debbie Pagurek wrote:
> 
> Hi everyone,
> I am trying to translate one of my applications into French and I am running into problems with French characters in my mapfile, and the legend generation.
> 
> see this excerpt from my mapfile layer:
> 
>   CLASS
>     EXPRESSION '0' #dummy class for title
>     NAME 'Écozones'
>     COLOR 255 255 255
>     OUTLINECOLOR 255 255 255
>   END  # CLASS
>   CLASS
>     EXPRESSION '1'
>     NAME 'Cordillère arctique'
>     COLOR 204 255 255
>   END  # CLASS
> 
> The first class name Écozones appears properly in my legend, but the second one, Cordillère arctique, does not.  Please see the attached image of the resulting legend.
> 
> So... does anyone know how to get French accents to appear properly in a legend??
> 
> Thanks,
> D. Pagurek
> 
>   ------------------------------------------------------------------------
>                     Name: legenderr.gif
>    legenderr.gif    Type: GIF Image (image/gif)
>                 Encoding: base64



More information about the mapserver-users mailing list