[Dive4elements-commits] [PATCH] Convert the river name into unicode
Wald Commits
scm-commit at wald.intevation.org
Thu Apr 4 11:21:22 CEST 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1365067280 -7200
# Node ID 8d2c576b5a4020cd4f72166fc376bd23538a65c3
# Parent 559a009b3d7282927ec860fbce5fce5428f3dd1f
Convert the river name into unicode
diff -r 559a009b3d72 -r 8d2c576b5a40 flys-backend/contrib/shpimporter/dgm.py
--- 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)
More information about the Dive4elements-commits
mailing list