Can someoene help me to convert unicode to list my unicode data looks like this
data=[u'1APT', u'CCS', u'COMRM']
data =type 'unicode'
And want to convert it to
data=['1APT', 'CCS','COMRM']
data = type 'list'
here are more details for my problem, here is code
genlist2= request.POST['data2']
print type(genlist2)
print "genlist2"
print genlist2
for d in genlist2:
print d
Output:
type 'unicode'
[u'1APT', u'CCS', u'COMRM']
[
u
'
1
A
p
T
etc..
Why in output in for loop , I get every character separated , i want
1APT
CCS
COMRM
??