* make sure your mapfile itself is encoded in utf8<br>* 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.<br>
<br>regards,<br>thomas<br><br>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.<br><br><div class="gmail_quote">On Sat, Jan 9, 2010 at 08:46, 王连波 <span dir="ltr"><<a href="mailto:happyforev1@gmail.com">happyforev1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>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?<br>
Thank you for any hints.<br clear="all"><font color="#888888"><br>-- <br>天道酬勤<br>
</font><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>