[Pythonmac-SIG] How to print unicode to OS-X Terminal.app
Kent Johnson
kent37 at tds.net
Fri Feb 15 03:57:09 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....
That's what I thought, too, but a Q&D experiment seemed to work...
Kent
More information about the Pythonmac-SIG
mailing list