Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am developing a gis system using mapserver and open scales library. GIS data is taken from a shape file. When i try to show the name attached to a place its showing unknown characters (not in english) along with its name in english. here is my .map file settings

   NAME city
   STATUS ON      
   LABELITEM 'NAME'         
   MAXSCALE 7500000
  DATA "ndia_location.shp"   

   EXPRESSION ( '[PLACE]'=='city' )

            COLOR 0 0 0
            TYPE BITMAP
            SIZE SMALL          
            POSITION CC
        ENCODING UTF-8
            PARTIALS FALSE
        BUFFER 0

Is there a way to show only English name for the label. I have tried with openlayers javascript library also.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

For labeling you should use appropriate font which contained needed characters.

Create fonts.list file with the simmilar content:

# This be the fonts list
arial    arial.ttf
tahoma   tahoma.ttf
symbols  symbols.ttf

and put described fonts in the same directory. In MAP section of mapfile points to fonts.list:

    FONTSET     "fonts/fonts.list"

And in LABEL section set needed font:

        FONT "tahoma"
share|improve this answer
how do i know which font to use?.I use ogrinfo command in linux to get the details about features in the shapefile. But its not giving any info about the font used – Muneeb May 30 '12 at 8:49
First of all you should to determine encoding of your shapefile attribute data and point it within LABEL section, also you should set appropriate font which contains needed characters. For more information see – drnextgis May 30 '12 at 10:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.