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