Message6830

Author amak
Recipients amak, pekka.klarck
Date 2012-03-19.18:18:19
SpamBayes Score 2.3461152e-07
Marked as misclassified No
Message-id <1332181099.83.0.455155398585.issue1841@psf.upfronthosting.co.za>
In-reply-to
Content
What is the setting of "python.console.encoding" in your registry file?

Is it set to the actual encoding of your shell?

Note also that you should really be passing an encoding to the String constructor when decoding from bytes, i.e.

>>> os.environ['b'] = u'\xe4'.encode('UTF-8')
>>> String(os.environ['b'], "UTF-8").toString()

If you don't specify an encoding, the bytes are unlikely to be decoded properly.
History
Date User Action Args
2012-03-19 18:18:19amaksetmessageid: <1332181099.83.0.455155398585.issue1841@psf.upfronthosting.co.za>
2012-03-19 18:18:19amaksetrecipients: + amak, pekka.klarck
2012-03-19 18:18:19amaklinkissue1841 messages
2012-03-19 18:18:19amakcreate