[mapserver-users] Can I set class name in mapfile to Chinese?
karlos036 at yahoo.com
Sun Jan 10 15:07:13 EST 2010
I believe that displaying Chinese multi-byte characters is not a limitation
of MapServer. Assuming that you have already added the character set you
want to display to your FreeBSD system, you need to define the display
character set in the HTML header of your web page like this ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
Depending on the character set you are trying to show, you may get by with
using UFT-8. UCS, the universal ISO 10646 character set definition can also
Search the web and you can get examples on how to do this.
Dan Little wrote:
> What encoding is used for Chinese?
>>From: 王连波 <happyforev1 at gmail.com>
>>To: mapserver-users <mapserver-users at lists.osgeo.org>
>>Sent: Sat, January 9, 2010 1:46:20 AM
>>Subject: [mapserver-users] Can I set class name in mapfile to Chinese?
>>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
View this message in context: http://n2.nabble.com/Can-I-set-class-name-in-mapfile-to-Chinese-tp4276715p4282386.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the mapserver-users