[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: To pre, or not to pre...



> 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 ?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]