Re: Getting the encoding of sys.stdout and sys.stdin, and changing it properly

2006-01-05 Thread velle
I have been studying your reply for many hours now, trying to figure it all out. I am novice in many respects; eg. I did not know neither Locale, the command locale, nl_langinfo(), hexdump, that ctrl+d is EOF, etc. :-) However I have found a way that solves my original problem, and I will post sol

Re: Getting the encoding of sys.stdout and sys.stdin, and changing it properly

2006-01-03 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > Exactly what does the following line return? On your system, the result of nl_langinfo(CODESET), see nl_langinfo(3). On your system, this, in turn, is computed from the LANG, LC_CHARSET, and LC_ALL environment variables. > Is it the encoding of the terminal? I think no