I use mapserver5.4.0 on FreeBSD Release7.1. In my mapfile I get data
from postgis database whose encoding is EUC_CN, and my label part go as
follows: <br> labelitem name <br> CLASS<br> NAME xzqj_x<br> STYLE<br>
color 255 255 255<br> END<br> outlinecolor 0 0 0<br> label<br> COLOR 0 0 0<br># SHADOWCOLOR 0 218 218<br># SHADOWSIZE 1 1<br> TYPE truetype<br> encoding GB2312<br>
font simsun<br> MINSIZE 11<br> MAXSIZE 256<br># size 8<br> POSITION auto<br># PARTIALS FALSE<br># MINDISTANCE 30<br> BUFFER 4<br> END # end of label<br>however, when I run <a href="http://localhost/cgi-bin/mapserv?map=/..../....map&layer=xzqj_x&mode=map" target="_blank">http://localhost/cgi-bin/mapserv?map=/..../....map&layer=xzqj_x&mode=map</a>, it gives the error:<br>
getString(): Symbol definition error. Parsing error near (name):(line 46).<br>when I changed <span style="background-color: rgb(255, 0, 0);">labelitem name</span>(Chinese character) to <span style="background-color: rgb(255, 0, 0);">labelitem ename</span>(English)
, everything goes well. I know the problem comes from encoding, but I
do not know how to resolve it , I am confused about the encodings. Any
help are appreciated.