Chris Rebert wrote:
> On Mon, Dec 29, 2008 at 4:06 AM, Michal Ludvig wrote:
>> Hi,
>>
>> in my script I have sys.stdout and sys.stderr redefined to output
>> unicode strings in the current system encoding:
>>
>>encoding = locale.getpreferredencoding()
>>sys.stdout = codecs.getwrite
On Mon, Dec 29, 2008 at 4:06 AM, Michal Ludvig wrote:
> Hi,
>
> in my script I have sys.stdout and sys.stderr redefined to output
> unicode strings in the current system encoding:
>
>encoding = locale.getpreferredencoding()
>sys.stdout = codecs.getwriter(encoding)(sys.stdout)
>
> H