[mapserver-users] Can I set class name in mapfile to Chinese?
thomas.bonfort at gmail.com
Sun Jan 10 13:11:41 EST 2010
* make sure your mapfile itself is encoded in utf8
* in your legend's label block, add ENCODING utf8. make sure your label are
of type truetype and not bitmap, as the included bitmap fonts definitely do
not contain more than ascii characters.
this should do the trick. I don't know about chinese encodings, but you
should be able to replace utf8 with whatever encoding your mapfile is in.
On Sat, Jan 9, 2010 at 08:46, 王连波 <happyforev1 at gmail.com> wrote:
> Hi all,
> I use mapserver5.4.0 (PHP+MapScript) with ka-map under FreeBSD Release7.1 .
> Firstly, I want to know if it is possible to display Chinese class name in
> Legend by MapScript function drawLegend(). When I set my class name to
> Chinese characters in my mapfile, the name will become messy codes. I
> searched the MapServer website for explanation of Funciton drawLegend,
> however, there was only simple two sentences about it. I do not know where I
> can find more information about that, how can I make the legend picture
> display Chinese characters?
> Thank you for any hints.
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users