[mapserver-users] International characters in text paramater

Frode Wiseth Jørgensen frodewj at gmail.com
Thu May 29 16:26:12 EDT 2008


I think we need to refer to ANSI values, not ASCII.

This works for me on both MS4W and a Linux version of Mapserver:

        TEXT "Lowercase: æøå   Uppercase: ÆØÅ"

Which should give something like this:
http://bildr.no/view/205920


FrodeWJ






2008/5/29 Espen Isaksen <espen.isaksen at gmail.com>:

> Tried a bit more, and strange things happen. Sometimes Mapserver just
> runs for a long time without creating a map. Other times it creates a
> map, but the letters are totally wrong. When using 248 for ø I do not
> get any text at all. Using 156 for æ I get this:
>
> http://bildr.no/view/205560
>
> Appreciate it if anybody knows why this happens.
>
> Espen
>
> 2008/5/29 Espen Isaksen <espen.isaksen at gmail.com>:
> > Didn't get it to work as it should.
> >
> > This works:
> > TEXT "test"
> >
> > This does not work(no text at all in the map):
> > TEXT "Lysl&#248;ype"
> >
> > If we do this
> > TEXT ("Lysl&#248;ype")
> >
> > mapserver does not understand the ASCII value and prints it out
> > exactly as typed.
> >
> > Espen
> >
> >
> > 2008/5/28 Frode Wiseth Jørgensen <frodewj at gmail.com>:
> >> Hi Espen
> >>
> >> Try this:
> >>
> >>         TEXT "Lysl&#248;ype"
> >>
> >>
> >>
> >> FrodeWJ
> >>
> >>
> >>
> >>
> >> 2008/5/28 Espen Isaksen <espen.isaksen at gmail.com>:
> >>>
> >>> Hi!
> >>>
> >>> Tried to find a answer to this but was unable to. I am trying to use
> >>> Norwegian characters in the text parameter in the class object. I set
> >>> "Text (Lysløype)" in the map file but this does not work. How can I do
> >>> this correctly? Example follows:
> >>>
> >>>
> >>> LAYER   # Lysloype
> >>>                NAME Lysloype
> >>>                TYPE line
> >>>                STATUS default
> >>>                DATA bygg/lysloype
> >>>                MAXSCALE 20000
> >>>                TRANSPARENCY 80
> >>>                LABELMAXSCALE 2000
> >>>                CLASS
> >>>                        STYLE
> >>>                                COLOR 255 255 0 # Gul farge.
> >>>                                SYMBOL "point_line"
> >>>                        SIZE 4
> >>>                        END
> >>>
> >>>                        STYLE
> >>>                                COLOR 255 255 0 # Gul farge.
> >>>                                SYMBOL "normal_line"
> >>>                        SIZE 1
> >>>                        END
> >>>
> >>>                        TEXT (Lysløpe)
> >>>
> >>>                        LABEL
> >>>                                SIZE 7
> >>>                                COLOR 255 255 255
> >>>                                OUTLINECOLOR 100 100 100
> >>>                                ANGLE follow
> >>>                                POSITION cc
> >>>                                TYPE truetype
> >>>                                FONT Verdana_bold
> >>>                                MINDISTANCE 1000000
> >>>                                PARTIALS false
> >>>                        END
> >>>                END
> >>>        END
> >>> _______________________________________________
> >>> mapserver-users mailing list
> >>> mapserver-users at lists.osgeo.org
> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >>
> >>
> >>
> >> --
> >> Frode Wiseth Jørgensen
> >> +47 99 03 41 42
> >
>



-- 
Frode Wiseth Jørgensen
+47 99 03 41 42
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080529/b96ae034/attachment.html


More information about the mapserver-users mailing list