I have following list example
['Justice league', 'Avenger']
Now the problem i facing to convert list to unicode list
Unicode list example is
[u'Justice league', u'Avenger']
How can I achieve this? thank you for your response.
try applying unicode
to its elements
>>> lst=['Justice league', 'Avenger']
>>> map(unicode,lst)
[u'Justice league', u'Avenger']
Obviously we are talking about Python 2 only, since literal strings are unicode by default in Python 3
Have a look at this Q&A on the same subject
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With