"name" is a reserved keyword in mapserver mapfiles, you should use LABELITEM "NAME" instead of LABELITEM NAME
regards, thomas www.camptocamp.com +33 5 16 57 01 02 On Wed, Oct 21, 2009 at 14:33, 王连波 <[email protected]> wrote: > 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: > labelitem name > CLASS > NAME xzqj_x > STYLE > color 255 255 255 > END > outlinecolor 0 0 0 > label > COLOR 0 0 0 > # SHADOWCOLOR 0 218 218 > # SHADOWSIZE 1 1 > TYPE truetype > encoding GB2312 > font simsun > MINSIZE 11 > MAXSIZE 256 > # size 8 > POSITION auto > # PARTIALS FALSE > # MINDISTANCE 30 > BUFFER 4 > END # end of label > however, when I run > http://localhost/cgi-bin/mapserv?map=/..../....map&layer=xzqj_x&mode=map, it > gives the error: > getString(): Symbol definition error. Parsing error near (name):(line 46). > when I changed labelitem name(Chinese character) to labelitem ename(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. > _______________________________________________ > 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
