summaryrefslogtreecommitdiff
path: root/chimere/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/utils.py')
-rw-r--r--chimere/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/chimere/utils.py b/chimere/utils.py
index d1ea851..a82d88b 100644
--- a/chimere/utils.py
+++ b/chimere/utils.py
@@ -46,6 +46,8 @@ from chimere import get_version
from external_utils import OsmApi
def unicode_normalize(string):
+ if type(string) == str:
+ string = unicode(string.decode('utf-8'))
return ''.join(
(c for c in unicodedata.normalize('NFD', string)
if unicodedata.category(c) != 'Mn'))