Re: [mapserver-users] Can I set class name in mapfile to Chinese?

2010-01-10 Thread thomas bonfort
* 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

Re: [mapserver-users] Can I set class name in mapfile to Chinese?

2010-01-10 Thread karlos036
Dan Little wrote: What encoding is used for Chinese? From: 王连波 happyfor...@gmail.com To: mapserver-users mapserver-users@lists.osgeo.org Sent: Sat, January 9, 2010 1:46:20 AM Subject: [mapserver-users] Can I set class name in mapfile to Chinese? Hi all, I use mapserver5.4.0 (PHP+MapScript

[mapserver-users] Can I set class name in mapfile to Chinese?

2010-01-08 Thread 王连波
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.