In [1]:
!cat /Users/mb312/tmp/adir/thirdfile
.
├── afile
├── anotherfile
└── thirdfile

0 directories, 3 files

In [2]:
import sys
print sys.stdin.encoding, sys.stdout.encoding, sys.getdefaultencoding()
None UTF-8 ascii

In [3]:
import IPython
print sys.version, IPython.__version__
2.6.6 (r266:84374, Aug 31 2010, 11:00:51) 
[GCC 4.0.1 (Apple Inc. build 5493)] 1.0.dev

In [3]: