sys.stdin.encoding

Leo Kislov Leo.Kislov at gmail.com
Mon Dec 11 05:18:28 EST 2006


Martin v. Löwis wrote:
> aine_canby at yahoo.com schrieb:
> > The following line in my code is failing because sys.stdin.encoding is
> > Null. This has only started happening since I started working with
> > Pydef in Eclipse SDK. Any ideas?
> >
> > uni=unicode(word,sys.stdin.encoding)
>
> That's a problem with pydev, where the standard machinery to determine
> the terminal's encoding fail.
>
> I have no idea yet how to fix this.

Environmental variable TERMENCODING ? Heck, maybe this will catch on
and will be used by other languages, libraries, terminals, etc. It's
not really Python only problem.

  -- Leo




More information about the Python-list mailing list