Well the > should probably be > but the degree symbol should be fine.
You may need to add ; charset=utf-8 to the end of the content-type though.

In my tests the degrees symbols round trip ok with and without the charset
but I'm on linux so your mileage may vary.

Ian

On Wed, 16 Oct 2019 at 10:05, Nikolaus Pruzsinszky <nikopr...@gmail.com>
wrote:

> Hi everyone,
> I have problems uploading an sld via REST. Special characters get
> converted into something I don't like ;-). The problematic characters are °
> and >. If I just copy the sld from my Texteditor (Notepad++) or use the
> upload funtcion in the interface I have no issues at all.
>
> This is the REST call for uploading the sld:
>
> curl -v -u %login% -XPUT -H "Content-type: application/vnd.ogc.sld+xml" -d
> @%slope%/Hangneigung.sld %url%/styles/Hangneigung_AUT
>
> Could the content type be a Problem?
> Cheers, Niko
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 
Ian Turton
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to