Message5866

Author rdesgroppes
Recipients fwierzbicki, pekka.klarck, pjenvey, rdesgroppes, yanne
Date 2010-07-01.09:40:06
SpamBayes Score 0.44373313
Marked as misclassified No
Message-id <1277977208.49.0.736044684866.issue1568@psf.upfronthosting.co.za>
In-reply-to
Content
Minimal implementation, working even if JVM is not connected to a TTY:
---
    from java.io import Console

    def get_console_encoding():
        encoding_method = Console.getDeclaredMethod("encoding", None)
        encoding_method.setAccessible(True)
        return encoding_method.invoke(None, None)
---
History
Date User Action Args
2010-07-01 09:40:08rdesgroppessetmessageid: <1277977208.49.0.736044684866.issue1568@psf.upfronthosting.co.za>
2010-07-01 09:40:08rdesgroppessetrecipients: + rdesgroppes, fwierzbicki, pekka.klarck, pjenvey, yanne
2010-07-01 09:40:08rdesgroppeslinkissue1568 messages
2010-07-01 09:40:06rdesgroppescreate