Author jeff.allen
Recipients jeff.allen, nullquery
Date 2014-10-17.20:08:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I get this a lot when testing under Eclipse, but not at a real console. My usual solution is to add -Dpython.console.encoding=UTF-8 (or whatever) as a JVM parameter. But you can do it in the (Jython) registry too.

Jython's sys module looks in several places for the console encoding. If nothing tells it the encoding explicitly, it asks Java, here:

Unfortunately, when Windows returns code page zero, Java claims to know that the encoding is cp0.

Maybe we should convert that special case to null here, so that Jython will next consult file.encoding. I *think* this is what the outcome of CPython 6501 amounts to (
Date User Action Args
2014-10-17 20:08:48jeff.allensetmessageid: <>
2014-10-17 20:08:48jeff.allensetrecipients: + jeff.allen, nullquery
2014-10-17 20:08:48jeff.allenlinkissue2222 messages
2014-10-17 20:08:47jeff.allencreate