atsuo ishimoto dsuvthimgembookorg 2008416 nick coghlan oleg broytmann wrote wed apr 16 2008 101113pm 1000 nick coghlan wrote atsuo ishimoto wrote ioerror errno 2 file directory u65e5u672cu8a9e starting seem like something addressed sysdisplayhookexcepthook interactive interpreter level problem manifests scripts traceback recent call last file tttpy line 4 openтест filename koi8r encoding ioerror errno 2 file directory xd4xc5xd3xd4 hmm io module along sysstdouterr may better way attack problem given import sys io class parseunicodeescapesiotextiowrapper def writeself text superwritetextencodelatin1decodeunicode_escape args sysstdoutbuffer sysstdoutencoding sysstdouterrors none sysstdoutline_buffering sysstdout parseunicodeescapesargs args sysstderrbuffer sysstderrencoding sysstderrerrors none sysstderrline_buffering sysstderr parseunicodeescapesargs get тест тест openтест got printあ traceback recent call last file line 1 file line 3 write unicodeencodeerror latin1 codec cant encode character あ position 0 ordinal range256 printu0041 hack doesnt work displayhook hack doesnt work question happy forced live hacks forever think ill accept suggestion _______________________________________________ python3000 mailing list python3000pythonorg httpmailpythonorgmailmanlistinfopython3000 unsubscribe httpmailpythonorgmailmanoptionspython3000python300040tangomucom fri 08 aug 2008 030529 0900 python3000 displaying strings containing unicode escapes interactive prompt