To pre, or not to pre...

Muayyad AlSadi alsadi at gmail.com
Tue Dec 16 23:44:43 UTC 2008


> print '\n%s encoding on %s\n' % (enc, item)
was it piped

because when a print is piped python won't do str.encode('utf-8')
because it does not know the encoding of the pipe

but when it's on terminal it could guess the output encoding

 am I right ?




More information about the fedora-devel-list mailing list