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

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

2006-01-03 Thread velle
My headache is growing while playing arround with unicode in Python, please help this novice. I have chosen to divide my problem into a few questions. Python 2.3.4 (#1, Feb 2 2005, 12:11:53) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 1) Does " >>>print 'hello' " simply write to sys.std