From 7935c5ef8a636ebe7b947ebfd4dd21029e982b69 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Fri, 31 Aug 2007 15:06:37 +0000 Subject: [PATCH] unicode char feature 1199 svn: r8907 --- ChangeLog | 5 ++++- src/PlaceUtils.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 312e71ff4..3838f1c9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-08-31 Benny Malengier - * src/PlaceUtils.py: request #1199 + * src/PlaceUtils.py: request #1199: replace unicode symbols with u codes + +2007-08-31 Benny Malengier + * src/PlaceUtils.py: request #1199, unicode symbols for ' and " are not recognized 2007-08-25 Benny Malengier * src/plugins/rel_de.py : nomeata, bug #1183 diff --git a/src/PlaceUtils.py b/src/PlaceUtils.py index d1f724409..c3df45382 100644 --- a/src/PlaceUtils.py +++ b/src/PlaceUtils.py @@ -177,8 +177,8 @@ def conv_lat_lon(latitude, longitude, format="D.D4"): #allow to input " as '' val = val.replace( r"''",r'"') #allow some special unicode symbols - val = val.replace( u"″",r'"') - val = val.replace( u"′",r"'") + val = val.replace( u'\u2033',r'"') + val = val.replace( u'\u2032',r"'") #ignore spaces val = val.replace(r'\s*', r'') # get the degrees, must be present