views:

27

answers:

0

Hello, how can that happen that the same script produces different result on different machines (development & release)? Here is the script:

import xmlrpclib
print "ServerProxy"
s = xmlrpclib.ServerProxy('http://jira.mycompany.com:80/rpc/xmlrpc')


print "call get_tasks()..."
ret_get_tasks = s.JiraVSB.get_tasks( "BDD", ["user"] )
print "get_tasks() returns:"
print ret_get_tasks

On the release machine, the result is u'\u041f\u0440\u0438\u0432\u0435\u0442! \u042f \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0431\u0430\u0433! \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e!', which is a unicode string as it is supposed to be. But on the development machine the result is '\x1f@825B! / B5AB>2K9 103!' which is a usual string and the encoding is incorrect! There is not much difference between development & release machines, both running Ubuntu, only on development machine Python version is 2.6.4, while on release machine Python version is 2.6.5.