c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #15421
[Bug 714640] Re: [trunk 3330] Bug in crm_partner_assign with french character
Humm after test, openerp work fine without modification.
My problem is, we import data from a sql server, and all string field read as unicode, so before to save data, we need to convert all string field in UTF8 and that solve the problem.
This bug can be close.
(
>>> 'Montréal'
'Montr\xc3\xa9al' <== geo_find accept that
>>> u'Montréal'
u'Montr\xe9al' <== geo_find error on that
So .. maybe verify addr string in geo_find to be sure not unicode string here ;)
)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/714640
Title:
[trunk 3330] Bug in crm_partner_assign with french character
Status in OpenERP Modules (addons):
Incomplete
Bug description:
def geo_find(addr):
try:
regex = '<coordinates>([+-]?[0-9\.]+),([+-]?[0-9\.]+),([+-]?[0-9\.]+)</coordinates>'
url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr) + '&output=xml&oe=utf8&sensor=false'
if we have u'MONTR\xe9AL'i got a error
change by
url = 'http://maps.google.com/maps/geo?q=' + urllib.quote(addr.encode('UTF8')) + '&output=xml&oe=utf8&sensor=false'
work fine
References