From 7e63c15d06fe78f21f1f31e6d6ca72cbcbd73fef Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Fri, 31 Aug 2007 10:02:00 +0000 Subject: [PATCH] unicode char feature 1199 svn: r8903 --- ChangeLog | 3 +++ src/PlaceUtils.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index fc9979eaa..4b3932fb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-08-31 Benny Malengier + * src/PlaceUtils.py: request #1199 + 2007-08-31 Stephane Charette * src/Filters/Rules/_HasReferenceCountBase.py: move some filter code from ::apply() into ::prepare() to ensure it executes only once diff --git a/src/PlaceUtils.py b/src/PlaceUtils.py index f040f0b63..fa298f2b7 100644 --- a/src/PlaceUtils.py +++ b/src/PlaceUtils.py @@ -175,6 +175,9 @@ def conv_lat_lon(latitude, longitude, format="D.D4"): val = val.replace( r'#',r'_') #allow to input " as '' val = val.replace( r"''",r'"') + #allow some special unicode symbols + val = val.replace( u"″",r'"') + val = val.replace( u"′",r"'") #ignore spaces val = val.replace(r'\s*', r'') # get the degrees, must be present