I have the following unicode: s = u'\\u5b50'
.
I want to convert s
to m = u'\u5b50'
.
How do I do it?
s = u'\\u5b50'
m = u'\u5b50'
print len(s) # 6
print len(m) # 1
print s # \u5b50
print m # 子
I have the following unicode: s = u'\\u5b50'
.
I want to convert s
to m = u'\u5b50'
.
How do I do it?
s = u'\\u5b50'
m = u'\u5b50'
print len(s) # 6
print len(m) # 1
print s # \u5b50
print m # 子
This works: