changeset 5553:8d2c576b5a40

Convert the river name into unicode
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 04 Apr 2013 11:21:20 +0200
parents 559a009b3d72
children f2011e8d0651
files flys-backend/contrib/shpimporter/dgm.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/dgm.py	Thu Apr 04 11:00:47 2013 +0200
+++ b/flys-backend/contrib/shpimporter/dgm.py	Thu Apr 04 11:21:20 2013 +0200
@@ -134,7 +134,7 @@
                 except ValueError:
                     logger.warn("Invalid numbers (or none) found in year_from and year_to")
 
-                name = "%s KM %s - %s" % (river_name, km_von, km_bis)
+                name = "%s KM %s - %s" % (unicode(river_name, "latin1"), km_von, km_bis)
                 cur = dbconn.cursor()
                 range_id = get_range_id(cur, river_id, float(km_von),
                     float(km_bis), oracle)

http://dive4elements.wald.intevation.org