Special characters in mapfile

Paul Ramsey pramsey at REFRACTIONS.NET
Mon Sep 19 19:59:04 EDT 2005


Unpleasant solution:
Make it a 'u' or something with your normal text editor.  Then, open  
your map file in hexedit, and change that 'u' to the higher ASCII  
value that corresponds to the 'micro' sign (presumably 181, or b5 in  
hex, if that is what the HTML entities table says).
Paul

On 19-Sep-05, at 11:55 AM, Kralidis,Tom [Burlington] wrote:

> Hi,
>
> We have a situation where we would like to include the micro sign  
> special character as part of a CLASS NAME in a mapfile.
>
> I initially thought that this could have be written as escaped HTML  
> entities, like µ or µ, but neither of those worked in  
> the mapfile.
>
> Any suggestions would be appreciated.
>
> ..Tom
>
>
> -----Original Message-----
> From: Houle,Marcel [Montreal]
> Sent: Monday, 19 September, 2005 14:40
> To: Kralidis,Tom [Burlington]
> Subject: Question
>
>
> Hi Tom,
>
> Do you know how to include special characters in a CLASS object  
> within a mapfile ?
>
> I have many maps in mapinfo polygons format that I want to include  
> in a WMS service.
>
> Each map shows concentrations of contaminants in sediments.
>
> The concentrations are in differents units, among them is microgram/ 
> gram. The abreviation for this is µg/g
>
> Now, in the mapfile, I use this code to represent each thematic  
> class in the polygons file :
>
>     CLASS
>        NAME "Hg 0.075-0.140 µg/g"
>        EXPRESSION ([Upper]=0.140056)
>        COLOR 0 255 255
>        OUTLINECOLOR 0 255 255
>     END
>
> The 'µ' symbol in the NAME parameter does not appear in the  
> resulting legend (it is replaced by something else). Is there a way  
> to use special characters like 'µ'  in the NAME parameter of a  
> CLASS object ?
>
> See GetMap result attached
>
> Thank
>
>
>
> Marcel Houle
> Chargé de projets en géomatique
> Centre Saint-Laurent
> Environnement Canada
> 105, rue McGill, 7e étage
> Montréal, Québec H2Y 2E7
> 514.496.2672
> marcel.houle at ec.gc.ca
>
> Visitez notre site Web :
> http://www.qc.ec.gc.ca/csl/index.html
>



More information about the mapserver-users mailing list