[mapserver-users] label encoding problem
Thomas Bonfort
thomas.bonfort at camptocamp.com
Wed Oct 21 08:40:16 PDT 2009
"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, 王连波 <happyforev1 at gmail.com> 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
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
More information about the MapServer-users
mailing list