In [4]:
x=u'汉字'
print x
print len(x)


汉字
2

In [27]:
%%javascript
document.body.style.backgroundColor="white"



In [16]:
x=input()
print x
print len(x)
x=x.decode("gbk")
print x
print len(x)


'汉字'
����
4
汉字
2

In [14]:
import sys
sys.getdefaultencoding()


Out[14]:
'ascii'