FW: Mapfile metadata escaping params

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Mon Nov 22 22:05:27 EST 2004


> 
> Kralidis,Tom [Burlington] wrote:
> > Hi,
> > 
> > I have some values like:
> > 
> > "wms_abstract" "this is my "abstract""
> > 
> > ...which render parsing errors.
> > 
> > Is it possible to 'escape' these in the mapfile?  I've tried:
> > 
> > "wms_abstract" "this is my \"abstract\""
> > 
> > ..with no success.
> 
> Tom,
> 
> The .map file allows quoting with either single or double 
> quotes. So when I want double quotes in a string I quote with 
> single quotes.
> 
>   "wms_abstract" 'this is my "abstract"'
> 
> I don't know what I would do if I needed both single and 
> double quotes in a string.  It seems like backslash escape, 
> or at least some mechanism, should be enabled.
> 

That's exactly what I need.  I'm encoding a metadata value which has
both.  I tried the somewhat predicatable "\" escape, but no go.  Looks
like this will get address in 4.6, though.

..Tom



More information about the mapserver-users mailing list