International text characters

Janeks Kamerovskis janeks.kamerovskis at SILVA.LV
Wed May 18 06:50:54 PDT 2005


Thanks for answer!

Probably dummy question:
How to get  to know what kind of encoding have f.ex. an *.dbf file of
shapefiles?

brgds
Janeks

> -----Original Message-----
> From: Mario Basa [mailto:mario.basa at gmail.com]
> Sent: Tuesday, May 17, 2005 5:57 PM
> To: Janeks Kamerovskis
> Subject: Re: [UMN_MAPSERVER-USERS] International text characters
>
>
> Hello Jaeks,
>
> Basically, that is what the "ENCODING" parameter of Mapserver does:
> convert the i18n text into UTF-8 using libiconv. If you did convert
> the text into UTF-8 already, you don't have to place the "ENCODING"
> parameter anymore in your Layer definition.
>
> Really hope this helps.
>
> mario.
>
>
>
> On 5/17/05, Janeks Kamerovskis <janeks.kamerovskis at silva.lv> wrote:
> >
> > Then what you will tell regarding this situation:
> >
> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0404/msg0
> 0162.html
> >
> > brgds
> > Janeks
> >
> > > -----Original Message-----
> > > From: UMN MapServer Users List
> > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mario Basa
> > > Sent: Tuesday, May 17, 2005 5:04 PM
> > > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > > Subject: Re: [UMN_MAPSERVER-USERS] International text characters
> > >
> > >
> > > Hello,
> > >
> > > The first thing that usually has to be done when encountering problems
> > > with international text characters is to check if the character
> > > encoding used is supported by iconv. You can check it here:
> > >
> > > http://www.gnu.org/software/libiconv/
> > >
> > > If it is, then it is just a matter of finding the right font set that
> > > can handle the i18n text, which you most probably have in your
> > > computer already.
> > >
> > > regards
> > >
> > > mario
> > > yokohama,japan.
> > >
> > >
> > > On 5/17/05, Robert Jones <xbobwjones at hotmail.com> wrote:
> > > > Hi
> > > >
> > > > I posted a couple of weeks ago and have not been able to solve
> > > my problem
> > > > with international text characters not displaying properly..
> > > >
> > > > I am using a shapefile with text fields encoded in LATIN1,
> and am almost
> > > > certain that the truetype font I am using to label supports
> > > these characters.
> > > >
> > > > Can anyone help?  I stuck..
> > > >
> > > > I'm thinking it must have something to do with either the font,
> > > libiconv, or
> > > > ms4w - which I used to set up mapserver.  Has anyone else
> experienced
> > > > similar problems with ms4w?
> > > >
> > > > I am setting up the the layer as follows:
> > > >
> > > > #Towns layer
> > > >   LAYER
> > > >     NAME "bart_caps2"
> > > >     GROUP "twn"
> > > >     STATUS ON
> > > >     DATA "twn_p"
> > > >     TYPE POINT
> > > >     CLASSITEM "CODE"
> > > >     UNITS METERS
> > > >     SIZEUNITS PIXELS
> > > >     MINSCALE 0
> > > >     MAXSCALE 58936139
> > > >     LABELITEM "COMMENT"
> > > >     LABELCACHE ON
> > > >     POSTLABELCACHE FALSE
> > > >     TOLERANCE 0
> > > >     TOLERANCEUNITS PIXELS
> > > >     TRANSPARENCY 100
> > > >     METADATA
> > > >       "Description"    "bart_twn"
> > > >     END
> > > >     #end metadata
> > > >     PROJECTION
> > > >       "init=epsg:4326"
> > > >     END
> > > >     #end projection
> > > >     CLASS
> > > >       NAME "bart_twn"
> > > >       EXPRESSION ([CODE] > 70 AND [CODE] < 72)
> > > >       LABEL
> > > >         TYPE TRUETYPE
> > > >         FONT ARIAL
> > > >         ENCODING LATIN1
> > > >         SIZE 10
> > > >         POSITION AUTO
> > > >         OFFSET 0 0
> > > >         COLOR 1 1 1
> > > >         OUTLINECOLOR 255 255 255
> > > >         PARTIALS TRUE
> > > >         FORCE FALSE
> > > >       END
> > > >       STYLE
> > > >         SYMBOL 7
> > > >         COLOR 255 0 0
> > > >         OUTLINECOLOR 0 0 0
> > > >         BACKGROUNDCOLOR 0 0 0
> > > >         SIZE 6
> > > >         ANTIALIAS FALSE
> > > >       END
> > > >     #end style
> > > >     END
> > > >   #end class
> > > >   END
> > > >   #END LAYER
> > > >
> > > > Thanks
> > > > Rob
> > > >
> >
> >



More information about the MapServer-users mailing list