[Pythonmac-SIG] How to print unicode to OS-X Terminal.app
robin at alldunn.com
Fri Feb 15 02:48:13 CET 2008
Christopher Barker wrote:
> Robin Dunn wrote:
>> Just replace sys.stdout with an object with a write() method that does
>> what you want.
> I don't think that will do it, as "print" will have already converted
> the object to a string, and it does that with str(), which calls
> object.__str__, which used the default encoding....
Ah, you're right. I didn't think the process through far enough.
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the Pythonmac-SIG