FW: Mapfile metadata escaping params

Frank Warmerdam warmerdam at POBOX.COM
Mon Nov 22 21:49:26 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.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list