[GIS] WFS from GeoServer won’t open in QGIS

geoserverwfs

I'm trying to open an WFS from my GeoServer in QGIS. But with very little success. I'm getting an error:
"Error when parsing GetFeature response : Error: not well-formed (invalid token) on line 1"

Searching this error indicates it could be an encoding issue…
My data is on a PostGIS database with encoding = Latin1, and my GeoServer is set to UTF-8. Could be the problem, but changing GeoServer global settings to "ISO-8859-1" which should be equal to latin1, does not help.

Any ideas that might fix it?

postgis version: 9.4.10
geroserver version : 2.11.1
qgis version 2.18.7

Best Answer

I had a same problem. In Geoserver I had layers with names that contained spaces and dashes. When I renamed them using only letters and underscore, problem was gone.

Related Question