Special characters in mapfile
pramsey at REFRACTIONS.NET
Mon Sep 19 19:59:04 EDT 2005
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).
On 19-Sep-05, at 11:55 AM, Kralidis,Tom [Burlington] wrote:
> 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.
> -----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 :
> NAME "Hg 0.075-0.140 µg/g"
> EXPRESSION ([Upper]=0.140056)
> COLOR 0 255 255
> OUTLINECOLOR 0 255 255
> 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
> Marcel Houle
> Chargé de projets en géomatique
> Centre Saint-Laurent
> Environnement Canada
> 105, rue McGill, 7e étage
> Montréal, Québec H2Y 2E7
> marcel.houle at ec.gc.ca
> Visitez notre site Web :
More information about the mapserver-users