Unicode legend and scalebar text?

Steve Hall steve.hall at MERCATORGEOSYSTEMS.CO.UK
Wed Feb 23 07:25:47 PST 2005


Hi all,

I've successfully been using the new ENCODING map file setting to successfully display Chinese annotation on my maps - and it works excellently!  However, i'd also like the Legend and Scalebar to have some kind of support for unicode character sets & localization in general.  Is this possible?  I'm *not* using the HTML legend in this case...

I seem to remember reading somewhere that .map files must always be ASCII and not unicode.  Is this true?  Under this assumption I have tried to use PHP/MapScript to dynamically change the class name to the appropriate unicode value.  This seems to "half work".  I am getting chinese characters in the legend but only half the number I would expect.  Sounds to me like some code somewhere is assuming that the number of characters is the same as the number of bytes inside the MapServer internals.  Can anyone comment on this - or should I post this to mapserver-dev perhaps?

Also is it possible to change the "mi" (for example) on the scalebar to some "localized" value?  Additionally can the "." character be altered as some European countries use a comma instead of a full-stop.

Many thanks,

Steve H

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050223/a6d95e86/attachment.htm>


More information about the MapServer-users mailing list