Unicode blues in Python3

nn pruebauno at latinmail.com
Tue Mar 23 16:36:20 EDT 2010



Stefan Behnel wrote:
> nn, 23.03.2010 19:46:
> > Actually what I want is to write a particular byte to standard output,
> > and I want this to work regardless of where that output gets sent to.
> > I am aware that I could do
> > open('nnout','w',encoding='latin1').write(mychar) but I am porting a
> > python2 program and don't want to rewrite everything that uses that
> > script.
>
> Are you writing text or binary data to stdout?
>
> Stefan

latin1 charset text.



More information about the Python-list mailing list