double quotes in expression

Paul Scott pscott at UWC.AC.ZA
Thu May 12 10:22:35 PDT 2005


Symbol (12, 1, "ESRI IGL Font20", 1)

The Expression for a string-query starts and ends with double quotes, so
that the whole expression would look like this:

EXPRESSION "Symbol (12, 1, "ESRI IGL Font20", 1)"

You can try using something like addslashes() in PHP or escaping the
quotes manually.

$expression = addslashes(Symbol (12, 1, "ESRI IGL Font20", 1));

or (12,1,\"ESRI IGL Font20\",1)

--Paul



More information about the MapServer-users mailing list