Thak you !<br> I am usding GetFeatureInfo to get Feature Info.<br> Read a Textfield 's value ,then use it as filter.<br> I want to know how to write the params and which params are necessary.<br>The exception is Could not parse CQL filter list.
Lexical error at line 1, column 11. Encountered: "\u2018" (8216), after
: "". Parsing : NAME LIKE ‘?E2??. Current Token : "NAME"
.<br><br>Can I use Chinese in CQL_FILTER ?<br>How should I set these params and CQL_FILTER?<br> <br>var params = {<br> REQUEST: "GetFeatureInfo",<br> EXCEPTIONS: "application/vnd.ogc.se_xml",<br> BBOX: map.getExtent().toBBOX(),<br> INFO_FORMAT: 'application/vnd.ogc.gml',<br> QUERY_LAYERS: map.layers[0].params.LAYERS,<br> FEATURE_COUNT: 50,<br> Layers: 'CHN',<br> Styles: '',<br> Srs: 'EPSG:4326',<br> <br> format: format};<br> <br> Request=OpenLayers.loadURL("http://159.226.13.203:8080/geoserver/wms?CQL_FILTER=NAME LIKE ‘%上海%’", params, this, highlight, setHTMLx);<br> <br> }<br> function highlight(response){<br> document.getElementById('nodelist').innerHTML = response.responseText;<br> alert("sss");<br> var doc = response.responseXML;<br> <br> if(!doc || !doc.documentElement) {<br> doc = response.responseText;<br> }<br> features = parseformat.read(doc);<br> <br> highlightLayer.addFeatures(features);<br> <br> };<br>