International text characters

Mario Basa mario.basa at GMAIL.COM
Tue May 17 10:04:08 EDT 2005


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