← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 531218] Re: [TRUNK] utf8 conversion between server and client

 

Hi,

Can you illustrate where would it fail or crash ?
We would like to fix such mishaps.

Thanks.

-- 
[TRUNK] utf8 conversion between server and client
https://bugs.launchpad.net/bugs/531218
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject GTK Client: New

Bug description:
Hi

Server revno: 2091
Addons revno: 3102
Client revno: 1183

Now the communication between client and serveur is in utf8 for the string. But the tests are not in utf8 in the server and addons. 

u'string'  !=  'string'

--------------8<---------------8<-------------
DEBUG_RPC:rpc.request:('execute', 'tiny_trunk_20100303_1027', 1, 'admin', ('res.partner.address', 'read', [12], ['function', 'city', 'fax', 'name', 'zip', 'title', 'mobile', 'type', 'street2', 'country_id', 'company_id', 'phone', 'street', 'state_id', 'partner_id', 'email', '__last_update'], {'lang': u'en_US', 'bin_size': True, 'tz': False, 'active_ids': [85], 'active_id': 85}))
DEBUG_RPC_ANSWER:rpc.result:[{'function': False, 'city': u'Alencon', 'fax': False, 'name': u'Sebastien LANGE', 'zip': u'61000', 'title': u'M.', 'mobile': False, 'type': u'default', 'street2': False, '__last_update': '2010-03-03 10:28:23.40819', 'country_id': (74, u'France'), 'company_id': False, 'email': u'contact@xxxxxxxxx', 'phone': u'+33 (0) 2 33 31 22 10', 'street': u"1 place de l'\xc9glise", 'state_id': False, 'partner_id': (5, u'Syleam'), 'id': 12}]
DEBUG_RPC:rpc.request:('execute', 'tiny_trunk_20100303_1027', 1, 'admin', ('ir.attachment', 'search_count', [('res_model', '=', u'res.partner.address'), ('res_id', '=', 12)]))
DEBUG_RPC_ANSWER:rpc.result:0
DEBUG_RPC:rpc.request:('execute', 'tiny_trunk_20100303_1027', 1, 'admin', ('res.partner.address', 'write', [12], {'title': u'Ms.'}, {'lang': u'en_US', 'active_ids': [85], 'tz': False, 'active_id': 85}))
DEBUG_RPC_ANSWER:rpc.result:True
DEBUG_RPC:rpc.request:('execute', 'tiny_trunk_20100303_1027', 1, 'admin', ('res.partner.address', 'read', [12], ['function', 'city', 'fax', 'name', 'zip', 'title', 'mobile', 'type', 'street2', 'country_id', 'company_id', 'phone', 'street', 'state_id', 'partner_id', 'email', '__last_update'], {'lang': u'en_US', 'bin_size': True, 'tz': False, 'active_ids': [85], 'active_id': 85}))
DEBUG_RPC_ANSWER:rpc.result:[{'function': False, 'city': u'Alencon', 'fax': False, 'name': u'Sebastien LANGE', 'zip': u'61000', 'title': u'Ms.', 'mobile': False, 'type': u'default', 'street2': False, '__last_update': '2010-03-03 10:33:01.158921', 'country_id': (74, u'France'), 'company_id': False, 'email': u'contact@xxxxxxxxx', 'phone': u'+33 (0) 2 33 31 22 10', 'street': u"1 place de l'\xc9glise", 'state_id': False, 'partner_id': (5, u'Syleam'), 'id': 12}]
--------------8<---------------8<-------------

Distribution: Ubuntu
Version: 9.10 (karmic)
Python 2.6.4

Locale:
  LANG=fr_FR.UTF-8