gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
191 stars 77 forks source link

utf-8 encode xml strings #115

Open rajanski opened 1 year ago

rajanski commented 1 year ago

I ran into some problems when there where special chars within the xml (layer title for example) . I needed to use data=data.encode('utf-8') to make requests work

jacklinna commented 5 months ago

maybe remove it

iboates commented 1 month ago

@rajanski Can you give me a specific example about which method you were calling and what you were passing? Generally you should always use utf-8 when possible, and if your source data is not in utf-8 then I think using .encode("utf-8") is a reasonable expectation.