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.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] 1.0.dev

In [3]: