I want to split the string I have £300
but it seems that the split function first converts it to a ascii and after. But I can't convert it back to unicode the same as it was before.
Is there any other way to split such a unicode string without breaking it as in the snippet bellow.
# -*- coding: utf-8 -*-
mystring = 'I have £300.'
alist = mystring.split()
alist = [item.decode("utf-8") for item in alist]
print "alist",alist
print "mystring.split()",mystring.split()
#I want to get [I,have,£300]
#I get: ['I', 'have', '\xc2\xa3300.']