* 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.
regards, thomas 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, 王连波 <[email protected]> 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
