In [4]:
x=u'汉字'
print x
print len(x)
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)
In [14]:
import sys
sys.getdefaultencoding()
Out[14]: