[GRASS-SVN] r57028 - grass/branches/develbranch_6/gui/wxpython/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 6 03:24:30 PDT 2013
Author: hamish
Date: 2013-07-06 03:24:30 -0700 (Sat, 06 Jul 2013)
New Revision: 57028
Modified:
grass/branches/develbranch_6/gui/wxpython/modules/ogc_services.py
Log:
avoid traceback when encountering utf chars (not a great solution, better to pass them through, but how?)
Modified: grass/branches/develbranch_6/gui/wxpython/modules/ogc_services.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/modules/ogc_services.py 2013-07-06 10:21:36 UTC (rev 57027)
+++ grass/branches/develbranch_6/gui/wxpython/modules/ogc_services.py 2013-07-06 10:24:30 UTC (rev 57028)
@@ -201,7 +201,7 @@
lastLayer = value
elif key == 'title':
if lastLayer and 'title' not in layers[lastLayer]:
- layers[lastLayer][key] = value
+ layers[lastLayer][key] = value.decode('utf8')
elif key == 'style':
if lastLayer:
if 'style' not in layers[lastLayer]:
More information about the grass-commit
mailing list