Skip to content

Commit 1dbf926

Browse files
authored
[Fixes: GeoNode#6509] Broken diacritics in Geoserver style (GeoNode#6510)
1 parent b32a015 commit 1dbf926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geonode/geoserver/helpers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ def set_layer_style(saved_layer, title, sld, base_file=None):
345345
try:
346346
if sld:
347347
if isfile(sld):
348-
sld = open(sld, "r").read()
348+
sld = open(sld, "rb").read()
349349
etree.XML(sld)
350350
elif base_file and isfile(base_file):
351-
sld = open(base_file, "r").read()
351+
sld = open(base_file, "rb").read()
352352
dlxml.parse(base_file)
353353
except Exception:
354354
logger.exception("The uploaded SLD file is not valid XML")

0 commit comments

Comments
 (0)